Add missing SK_API define.
authortfarina@chromium.org <tfarina@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>
Mon, 19 Nov 2012 19:43:18 +0000 (19:43 +0000)
committertfarina@chromium.org <tfarina@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>
Mon, 19 Nov 2012 19:43:18 +0000 (19:43 +0000)
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

include/core/SkPreConfig.h

index 756aaea..bc60342 100644 (file)
 
 #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