summaryrefslogtreecommitdiffstats
path: root/src/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 /src/plist.h
parentb3cf5bec39de69bf06c7813689f03cbe58f45ca9 (diff)
downloadlibplist-3daee6097cfa14c597e5104b02acfe83749001d9.tar.gz
libplist-3daee6097cfa14c597e5104b02acfe83749001d9.tar.bz2
Fix PLIST_API definitions
Diffstat (limited to 'src/plist.h')
-rw-r--r--src/plist.h16
1 files changed, 14 insertions, 2 deletions
diff --git a/src/plist.h b/src/plist.h
index 178fb7c..a993e3a 100644
--- a/src/plist.h
+++ b/src/plist.h
@@ -26,8 +26,6 @@
#include <config.h>
#endif
-#include "plist/plist.h"
-
#include <sys/types.h>
#include <sys/stat.h>
@@ -39,6 +37,20 @@
#include <sys/time.h>
#endif
+#ifdef LIBPLIST_STATIC
+ #define PLIST_API
+#elif defined(_WIN32)
+ #define PLIST_API __declspec( dllexport )
+#else
+ #if __GNUC__ >= 4
+ #define PLIST_API __attribute__((visibility("default")))
+ #else
+ #define PLIST_API
+ #endif
+#endif
+
+#include "plist/plist.h"
+
struct plist_data_s
{
union