aboutsummaryrefslogtreecommitdiffstats
path: root/include/core/SkPreConfig.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/core/SkPreConfig.h')
-rw-r--r--include/core/SkPreConfig.h16
1 files changed, 10 insertions, 6 deletions
diff --git a/include/core/SkPreConfig.h b/include/core/SkPreConfig.h
index daf2041..8d47d46 100644
--- a/include/core/SkPreConfig.h
+++ b/include/core/SkPreConfig.h
@@ -62,7 +62,7 @@
#endif
#ifdef SK_BUILD_FOR_WIN32
- #define SK_RESTRICT
+ #define SK_RESTRICT
#include "sk_stdint.h"
#endif
@@ -101,12 +101,16 @@
#if !defined(SKIA_IMPLEMENTATION)
#define SKIA_IMPLEMENTATION 0
#endif
-
-#if defined(WIN32) && defined(SKIA_DLL)
- #if SKIA_IMPLEMENTATION
- #define SK_API __declspec(dllexport)
+
+#if defined(SKIA_DLL)
+ #if defined(WIN32)
+ #if SKIA_IMPLEMENTATION
+ #define SK_API __declspec(dllexport)
+ #else
+ #define SK_API __declspec(dllimport)
+ #endif
#else
- #define SK_API __declspec(dllimport)
+ #define SK_API __attribute__((visibility("default")))
#endif
#else
#define SK_API