From 48ba56d5faeb2687c654688910b505e2be38fd9c Mon Sep 17 00:00:00 2001 From: "bsalomon@google.com" Date: Tue, 26 Apr 2011 17:59:32 +0000 Subject: Update GR_API to support non-Windows DLLs. Review URL: http://codereview.appspot.com/4441067/ git-svn-id: http://skia.googlecode.com/svn/trunk@1189 2bbb7eff-a529-9590-31e7-b0007b416f81 --- gpu/include/GrConfig.h | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/gpu/include/GrConfig.h b/gpu/include/GrConfig.h index 8b8b28043f..2f89888fe0 100644 --- a/gpu/include/GrConfig.h +++ b/gpu/include/GrConfig.h @@ -171,11 +171,15 @@ typedef unsigned __int64 uint64_t; #define GR_DLL 0 #endif -#if GR_WIN32_BUILD && GR_DLL - #if GR_IMPLEMENTATION - #define GR_API __declspec(dllexport) +#if GR_DLL + #if GR_WIN32_BUILD + #if GR_IMPLEMENTATION + #define GR_API __declspec(dllexport) + #else + #define GR_API __declspec(dllimport) + #endif #else - #define GR_API __declspec(dllimport) + #define GR_API __attribute__((visibility("default"))) #endif #else #define GR_API -- cgit v1.2.3