update SK_API for non-windows builds



git-svn-id: http://skia.googlecode.com/svn/trunk@1192 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
reed@google.com 2011-04-26 20:04:16 +00:00
parent 69731aa60c
commit c009111446

View File

@ -102,12 +102,16 @@
#define SKIA_IMPLEMENTATION 0
#endif
#if defined(WIN32) && defined(SKIA_DLL)
#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 __attribute__((visibility("default")))
#endif
#else
#define SK_API
#endif