summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-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