diff options
author | tfarina@chromium.org <tfarina@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-11-19 19:43:18 +0000 |
---|---|---|
committer | tfarina@chromium.org <tfarina@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-11-19 19:43:18 +0000 |
commit | 15393c7f34e42bce0ae037d6b1a86d624ce44653 (patch) | |
tree | b78fa5d3e90b85884460edd96da4a711c60dec92 /include | |
parent | 276a2956f58b5baaa7a173daf1da163856099d71 (diff) |
Add missing SK_API define.
For a detailed explanation of this, please refer to Nico Weber description
here: https://chromiumcodereview.appspot.com/10386108
R=bsalomon@google.com
Review URL: https://codereview.appspot.com/6849075
git-svn-id: http://skia.googlecode.com/svn/trunk@6489 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'include')
-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 |