From: bsalomon@google.com Date: Tue, 26 Apr 2011 17:59:32 +0000 (+0000) Subject: Update GR_API to support non-Windows DLLs. X-Git-Tag: accepted/tizen/5.0/unified/20181102.025319~18612 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=48ba56d5faeb2687c654688910b505e2be38fd9c;p=platform%2Fupstream%2FlibSkiaSharp.git 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 --- diff --git a/gpu/include/GrConfig.h b/gpu/include/GrConfig.h index 8b8b280..2f89888 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