aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/ClipStackTest.cpp2
-rw-r--r--tests/PathCoverageTest.cpp2
-rw-r--r--tests/PathTest.cpp2
-rw-r--r--tests/SubsetPath.cpp1
4 files changed, 4 insertions, 3 deletions
diff --git a/tests/ClipStackTest.cpp b/tests/ClipStackTest.cpp
index a18d1efe06..c2ad21b24d 100644
--- a/tests/ClipStackTest.cpp
+++ b/tests/ClipStackTest.cpp
@@ -1011,7 +1011,7 @@ static void test_reduced_clip_stack(skiatest::Reporter* reporter) {
}
}
-#if defined(WIN32)
+#ifdef SK_BUILD_FOR_WIN
#define SUPPRESS_VISIBILITY_WARNING
#else
#define SUPPRESS_VISIBILITY_WARNING __attribute__((visibility("hidden")))
diff --git a/tests/PathCoverageTest.cpp b/tests/PathCoverageTest.cpp
index 303ddcc4cb..255156394a 100644
--- a/tests/PathCoverageTest.cpp
+++ b/tests/PathCoverageTest.cpp
@@ -5,7 +5,7 @@
* found in the LICENSE file.
*/
-#include "SkMath.h"
+#include "SkMathPriv.h"
#include "SkPoint.h"
#include "SkScalar.h"
#include "Test.h"
diff --git a/tests/PathTest.cpp b/tests/PathTest.cpp
index 9de5f81661..5bc3d95b6f 100644
--- a/tests/PathTest.cpp
+++ b/tests/PathTest.cpp
@@ -180,7 +180,7 @@ static void test_path_to_region(skiatest::Reporter* reporter) {
}
}
-#if defined(WIN32)
+#ifdef SK_BUILD_FOR_WIN
#define SUPPRESS_VISIBILITY_WARNING
#else
#define SUPPRESS_VISIBILITY_WARNING __attribute__((visibility("hidden")))
diff --git a/tests/SubsetPath.cpp b/tests/SubsetPath.cpp
index e67df1210b..6a7660e527 100644
--- a/tests/SubsetPath.cpp
+++ b/tests/SubsetPath.cpp
@@ -6,6 +6,7 @@
*/
#include "SubsetPath.h"
+#include "SkMathPriv.h"
SubsetPath::SubsetPath(const SkPath& path)
: fPath(path)