| Index: include/c/sk_types.h
|
| diff --git a/include/c/sk_types.h b/include/c/sk_types.h
|
| index 41dd2715b06423a8cede2acd008f229b0102dd4a..dcbc6f7d9e34c195599d0f01bac4b0b97cb6a795 100644
|
| --- a/include/c/sk_types.h
|
| +++ b/include/c/sk_types.h
|
| @@ -23,8 +23,20 @@
|
| #define SK_C_PLUS_PLUS_END_GUARD
|
| #endif
|
|
|
| -#ifndef SK_API
|
| -#define SK_API
|
| +#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 __attribute__((visibility("default")))
|
| + #endif
|
| + #else
|
| + #define SK_API
|
| + #endif
|
| #endif
|
|
|
| ///////////////////////////////////////////////////////////////////////////////////////
|
|
|