diff options
| -rw-r--r-- | include/plist/plist.h | 8 | ||||
| -rw-r--r-- | src/plist.h | 6 |
2 files changed, 6 insertions, 8 deletions
diff --git a/include/plist/plist.h b/include/plist/plist.h index 0938525..975836f 100644 --- a/include/plist/plist.h +++ b/include/plist/plist.h @@ -76,13 +76,7 @@ extern "C" /*}}}*/ #ifndef PLIST_API - #ifdef LIBPLIST_STATIC - #define PLIST_API - #elif defined(_WIN32) - #define PLIST_API __declspec(dllimport) - #else - #define PLIST_API - #endif + #define PLIST_API #endif #include <sys/types.h> 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"))) |
