From 15393c7f34e42bce0ae037d6b1a86d624ce44653 Mon Sep 17 00:00:00 2001 From: "tfarina@chromium.org" Date: Mon, 19 Nov 2012 19:43:18 +0000 Subject: [PATCH] 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 --- include/core/SkPreConfig.h | 8 ++++++-- 1 file 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 -- 2.34.1