Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6)

Unified Diff: include/core/SkPreConfig.h

Issue 2189983002: Make both SK_API definition points identical and order independent. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: TODOne Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « include/c/sk_types.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/core/SkPreConfig.h
diff --git a/include/core/SkPreConfig.h b/include/core/SkPreConfig.h
index 8c8eeef246caad21a79214b34c9ac716cdef051d..f993920fda5cd4e3ab9934b5dd5e998e69b826ff 100644
--- a/include/core/SkPreConfig.h
+++ b/include/core/SkPreConfig.h
@@ -209,18 +209,20 @@
#define SKIA_IMPLEMENTATION 0
#endif
-#if defined(SKIA_DLL)
- #if defined(SK_BUILD_FOR_WIN32)
- #if SKIA_IMPLEMENTATION
- #define SK_API __declspec(dllexport)
+#if !defined(SK_API)
+ #if defined(SKIA_DLL)
+ #if defined(SK_BUILD_FOR_WIN32)
+ #if SKIA_IMPLEMENTATION
+ #define SK_API __declspec(dllexport)
+ #else
+ #define SK_API __declspec(dllimport)
+ #endif
#else
- #define SK_API __declspec(dllimport)
+ #define SK_API __attribute__((visibility("default")))
#endif
#else
- #define SK_API __attribute__((visibility("default")))
+ #define SK_API
#endif
-#else
- #define SK_API
#endif
//////////////////////////////////////////////////////////////////////
« no previous file with comments | « include/c/sk_types.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698