diff options
-rw-r--r-- | include/core/SkPreConfig.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/include/core/SkPreConfig.h b/include/core/SkPreConfig.h index 756aaea6e0..bc60342ea0 100644 --- a/include/core/SkPreConfig.h +++ b/include/core/SkPreConfig.h @@ -195,13 +195,17 @@ #if defined(SKIA_DLL) #if defined(WIN32) - #if SKIA_IMPLEMENTATION + #if defined(SKIA_IMPLEMENTATION) #define SK_API __declspec(dllexport) #else #define SK_API __declspec(dllimport) #endif #else - #define SK_API __attribute__((visibility("default"))) + #if defined(SKIA_IMPLEMENTATION) + #define SK_API __attribute__((visibility("default"))) + #else + #define SK_API + #endif #endif #else #define SK_API |