| Index: include/core/SkPreConfig.h
|
| diff --git a/include/core/SkPreConfig.h b/include/core/SkPreConfig.h
|
| index 8c8eeef246caad21a79214b34c9ac716cdef051d..f993920fda5cd4e3ab9934b5dd5e998e69b826ff 100644
|
| --- a/include/core/SkPreConfig.h
|
| +++ b/include/core/SkPreConfig.h
|
| @@ -209,18 +209,20 @@
|
| #define SKIA_IMPLEMENTATION 0
|
| #endif
|
|
|
| -#if defined(SKIA_DLL)
|
| - #if defined(SK_BUILD_FOR_WIN32)
|
| - #if SKIA_IMPLEMENTATION
|
| - #define SK_API __declspec(dllexport)
|
| +#if !defined(SK_API)
|
| + #if defined(SKIA_DLL)
|
| + #if defined(SK_BUILD_FOR_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 __attribute__((visibility("default")))
|
| + #define SK_API
|
| #endif
|
| -#else
|
| - #define SK_API
|
| #endif
|
|
|
| //////////////////////////////////////////////////////////////////////
|
|
|