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

Unified Diff: include/c/sk_types.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 | « BUILD.gn ('k') | include/core/SkPreConfig.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/c/sk_types.h
diff --git a/include/c/sk_types.h b/include/c/sk_types.h
index 41dd2715b06423a8cede2acd008f229b0102dd4a..dcbc6f7d9e34c195599d0f01bac4b0b97cb6a795 100644
--- a/include/c/sk_types.h
+++ b/include/c/sk_types.h
@@ -23,8 +23,20 @@
#define SK_C_PLUS_PLUS_END_GUARD
#endif
-#ifndef SK_API
-#define SK_API
+#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 __attribute__((visibility("default")))
+ #endif
+ #else
+ #define SK_API
+ #endif
#endif
///////////////////////////////////////////////////////////////////////////////////////
« no previous file with comments | « BUILD.gn ('k') | include/core/SkPreConfig.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698