diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/plist/plist.h | 14 |
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" | |||
| 75 | #endif | 75 | #endif |
| 76 | /*}}}*/ | 76 | /*}}}*/ |
| 77 | 77 | ||
| 78 | #ifdef LIBPLIST_STATIC | 78 | #ifndef PLIST_API |
| 79 | #define PLIST_API | 79 | #ifdef LIBPLIST_STATIC |
| 80 | #elif defined(_WIN32) | 80 | #define PLIST_API |
| 81 | #ifdef DLL_EXPORT | 81 | #elif defined(_WIN32) |
| 82 | #define PLIST_API __declspec(dllexport) | ||
| 83 | #else | ||
| 84 | #define PLIST_API __declspec(dllimport) | 82 | #define PLIST_API __declspec(dllimport) |
| 85 | #endif | ||
| 86 | #else | ||
| 87 | #if __GNUC__ >= 4 | ||
| 88 | #define PLIST_API __attribute__((visibility("default"))) | ||
| 89 | #else | 83 | #else |
| 90 | #define PLIST_API | 84 | #define PLIST_API |
| 91 | #endif | 85 | #endif |
