diff options
Diffstat (limited to 'src/plist.h')
| -rw-r--r-- | src/plist.h | 22 |
1 files changed, 17 insertions, 5 deletions
diff --git a/src/plist.h b/src/plist.h index 2a9a3b5..822144d 100644 --- a/src/plist.h +++ b/src/plist.h | |||
| @@ -22,8 +22,11 @@ | |||
| 22 | #ifndef PLIST_H | 22 | #ifndef PLIST_H |
| 23 | #define PLIST_H | 23 | #define PLIST_H |
| 24 | 24 | ||
| 25 | #ifdef HAVE_CONFIG_H | ||
| 26 | #include <config.h> | ||
| 27 | #endif | ||
| 28 | |||
| 25 | #include "plist/plist.h" | 29 | #include "plist/plist.h" |
| 26 | #include "common.h" | ||
| 27 | 30 | ||
| 28 | #include <sys/types.h> | 31 | #include <sys/types.h> |
| 29 | #include <sys/stat.h> | 32 | #include <sys/stat.h> |
| @@ -34,6 +37,15 @@ | |||
| 34 | #pragma warning(disable:4244) | 37 | #pragma warning(disable:4244) |
| 35 | #endif | 38 | #endif |
| 36 | 39 | ||
| 40 | #ifdef WIN32 | ||
| 41 | #define PLIST_API __declspec( dllexport ) | ||
| 42 | #else | ||
| 43 | #ifdef HAVE_FVISIBILITY | ||
| 44 | #define PLIST_API __attribute__((visibility("default"))) | ||
| 45 | #else | ||
| 46 | #define PLIST_API | ||
| 47 | #endif | ||
| 48 | #endif | ||
| 37 | 49 | ||
| 38 | struct plist_data_s | 50 | struct plist_data_s |
| 39 | { | 51 | { |
| @@ -52,10 +64,10 @@ struct plist_data_s | |||
| 52 | 64 | ||
| 53 | typedef struct plist_data_s *plist_data_t; | 65 | typedef struct plist_data_s *plist_data_t; |
| 54 | 66 | ||
| 55 | _PLIST_INTERNAL plist_t plist_new_node(plist_data_t data); | 67 | plist_t plist_new_node(plist_data_t data); |
| 56 | _PLIST_INTERNAL plist_data_t plist_get_data(const plist_t node); | 68 | plist_data_t plist_get_data(const plist_t node); |
| 57 | _PLIST_INTERNAL plist_data_t plist_new_plist_data(void); | 69 | plist_data_t plist_new_plist_data(void); |
| 58 | _PLIST_INTERNAL int plist_data_compare(const void *a, const void *b); | 70 | int plist_data_compare(const void *a, const void *b); |
| 59 | 71 | ||
| 60 | 72 | ||
| 61 | #endif | 73 | #endif |
