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"
#endif
/*}}}*/
-#ifdef LIBPLIST_STATIC
- #define PLIST_API
-#elif defined(_WIN32)
- #ifdef DLL_EXPORT
- #define PLIST_API __declspec(dllexport)
- #else
+#ifndef PLIST_API
+ #ifdef LIBPLIST_STATIC
+ #define PLIST_API
+ #elif defined(_WIN32)
#define PLIST_API __declspec(dllimport)
- #endif
-#else
- #if __GNUC__ >= 4
- #define PLIST_API __attribute__((visibility("default")))
#else
#define PLIST_API
#endif