diff options
Diffstat (limited to 'src/common.h')
| -rw-r--r-- | src/common.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/common.h b/src/common.h index e044cbb..beb4a2b 100644 --- a/src/common.h +++ b/src/common.h | |||
| @@ -4,6 +4,15 @@ | |||
| 4 | #define PLIST_LITTLE_ENDIAN 0 | 4 | #define PLIST_LITTLE_ENDIAN 0 |
| 5 | #define PLIST_BIG_ENDIAN 1 | 5 | #define PLIST_BIG_ENDIAN 1 |
| 6 | 6 | ||
| 7 | #ifndef PLIST_BYTE_ORDER | ||
| 8 | #if __BIG_ENDIAN__ == 1 | ||
| 9 | #define PLIST_BYTE_ORDER PLIST_BIG_ENDIAN | ||
| 10 | #endif | ||
| 11 | #if __LITTLE_ENDIAN__ == 1 | ||
| 12 | #define PLIST_BYTE_ORDER PLIST_LITTLE_ENDIAN | ||
| 13 | #endif | ||
| 14 | #endif | ||
| 15 | |||
| 7 | #if defined(__GNUC__) && (__GNUC__ >= 4) && !defined(__CYGWIN__) && !defined(WIN32) | 16 | #if defined(__GNUC__) && (__GNUC__ >= 4) && !defined(__CYGWIN__) && !defined(WIN32) |
| 8 | # define _PLIST_INTERNAL __attribute__((visibility("hidden"))) | 17 | # define _PLIST_INTERNAL __attribute__((visibility("hidden"))) |
| 9 | #elif defined(__SUNPRO_C) && (__SUNPRO_C >= 0x550) | 18 | #elif defined(__SUNPRO_C) && (__SUNPRO_C >= 0x550) |
