diff options
| author | 2024-01-29 10:45:41 +0100 | |
|---|---|---|
| committer | 2024-01-29 10:45:41 +0100 | |
| commit | 3daee6097cfa14c597e5104b02acfe83749001d9 (patch) | |
| tree | f810f63085b5f7270df1ca0fcab68d7479729957 /include | |
| parent | b3cf5bec39de69bf06c7813689f03cbe58f45ca9 (diff) | |
| download | libplist-3daee6097cfa14c597e5104b02acfe83749001d9.tar.gz libplist-3daee6097cfa14c597e5104b02acfe83749001d9.tar.bz2 | |
Fix PLIST_API definitions
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 |
