summaryrefslogtreecommitdiffstats
path: root/include/plist/plist.h
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2024-01-29 10:45:41 +0100
committerGravatar Nikias Bassen2024-01-29 10:45:41 +0100
commit3daee6097cfa14c597e5104b02acfe83749001d9 (patch)
treef810f63085b5f7270df1ca0fcab68d7479729957 /include/plist/plist.h
parentb3cf5bec39de69bf06c7813689f03cbe58f45ca9 (diff)
downloadlibplist-3daee6097cfa14c597e5104b02acfe83749001d9.tar.gz
libplist-3daee6097cfa14c597e5104b02acfe83749001d9.tar.bz2
Fix PLIST_API definitions
Diffstat (limited to 'include/plist/plist.h')
-rw-r--r--include/plist/plist.h14
1 files changed, 4 insertions, 10 deletions
diff --git a/include/plist/plist.h b/include/plist/plist.h
index 47eda51..0a9f5ee 100644
--- a/include/plist/plist.h
+++ b/include/plist/plist.h
@@ -75,17 +75,11 @@ extern "C"
75#endif 75#endif
76/*}}}*/ 76/*}}}*/
77 77
78#ifdef LIBPLIST_STATIC 78#ifndef PLIST_API
79 #define PLIST_API 79 #ifdef LIBPLIST_STATIC
80#elif defined(_WIN32) 80 #define PLIST_API
81 #ifdef DLL_EXPORT 81 #elif defined(_WIN32)
82 #define PLIST_API __declspec(dllexport)
83 #else
84 #define PLIST_API __declspec(dllimport) 82 #define PLIST_API __declspec(dllimport)
85 #endif
86#else
87 #if __GNUC__ >= 4
88 #define PLIST_API __attribute__((visibility("default")))
89 #else 83 #else
90 #define PLIST_API 84 #define PLIST_API
91 #endif 85 #endif