diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/platform.h | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/include/platform.h b/include/platform.h index b77d815f8..d684c2dda 100644 --- a/include/platform.h +++ b/include/platform.h | |||
@@ -97,18 +97,16 @@ | |||
97 | #endif | 97 | #endif |
98 | 98 | ||
99 | /* ---- Endian Detection ------------------------------------ */ | 99 | /* ---- Endian Detection ------------------------------------ */ |
100 | #if !defined __APPLE__ && !(defined __digital__ && defined __unix__) | ||
101 | # include <byteswap.h> | ||
102 | # include <endian.h> | ||
103 | #endif | ||
104 | 100 | ||
105 | #if (defined __digital__ && defined __unix__) | 101 | #if (defined __digital__ && defined __unix__) |
106 | # include <sex.h> | 102 | # include <sex.h> |
107 | # define __BIG_ENDIAN__ (BYTE_ORDER == BIG_ENDIAN) | 103 | # define __BIG_ENDIAN__ (BYTE_ORDER == BIG_ENDIAN) |
108 | # define __BYTE_ORDER BYTE_ORDER | 104 | # define __BYTE_ORDER BYTE_ORDER |
105 | #elif !defined __APPLE__ | ||
106 | # include <byteswap.h> | ||
107 | # include <endian.h> | ||
109 | #endif | 108 | #endif |
110 | 109 | ||
111 | |||
112 | #ifdef __BIG_ENDIAN__ | 110 | #ifdef __BIG_ENDIAN__ |
113 | # define BB_BIG_ENDIAN 1 | 111 | # define BB_BIG_ENDIAN 1 |
114 | # define BB_LITTLE_ENDIAN 0 | 112 | # define BB_LITTLE_ENDIAN 0 |
@@ -188,13 +186,7 @@ typedef unsigned long long int uintmax_t; | |||
188 | #define PRIu32 "u" | 186 | #define PRIu32 "u" |
189 | #endif | 187 | #endif |
190 | 188 | ||
191 | 189 | // Need to implement fdprintf for platforms that haven't got dprintf. | |
192 | /* NLS stuff */ | ||
193 | /* THIS SHOULD BE CLEANED OUT OF THE TREE ENTIRELY */ | ||
194 | #define _(Text) Text | ||
195 | #define N_(Text) (Text) | ||
196 | |||
197 | /* THIS SHOULD BE CLEANED OUT OF THE TREE ENTIRELY */ | ||
198 | #define fdprintf dprintf | 190 | #define fdprintf dprintf |
199 | 191 | ||
200 | /* THIS SHOULD BE CLEANED OUT OF THE TREE ENTIRELY */ | 192 | /* THIS SHOULD BE CLEANED OUT OF THE TREE ENTIRELY */ |