summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/plist.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/plist.h b/src/plist.h
index 7228696..5b50192 100644
--- a/src/plist.h
+++ b/src/plist.h
@@ -40,7 +40,11 @@
#ifdef LIBPLIST_STATIC
#define PLIST_API
#elif defined(_WIN32)
- #define PLIST_API __declspec( dllexport )
+ #ifdef DLL_EXPORT
+ #define PLIST_API __declspec( dllexport )
+ #else
+ #define PLIST_API
+ #endif
#else
#if __GNUC__ >= 4
#define PLIST_API __attribute__((visibility("default")))