diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/alltypes.h.in | 3 | ||||
-rw-r--r-- | include/endian.h | 8 |
2 files changed, 4 insertions, 7 deletions
diff --git a/include/alltypes.h.in b/include/alltypes.h.in index 8e76c839..1ab40395 100644 --- a/include/alltypes.h.in +++ b/include/alltypes.h.in @@ -1,3 +1,6 @@ +#define __LITTLE_ENDIAN 1234 +#define __BIG_ENDIAN 4321 + TYPEDEF unsigned _Addr size_t; TYPEDEF unsigned _Addr uintptr_t; TYPEDEF _Addr ptrdiff_t; diff --git a/include/endian.h b/include/endian.h index 1bd44451..2c2ad5f4 100644 --- a/include/endian.h +++ b/include/endian.h @@ -3,15 +3,9 @@ #include <features.h> -#define __LITTLE_ENDIAN 1234 -#define __BIG_ENDIAN 4321 #define __PDP_ENDIAN 3412 -#if defined(__GNUC__) && defined(__BYTE_ORDER__) -#define __BYTE_ORDER __BYTE_ORDER__ -#else -#include <bits/endian.h> -#endif +#include <bits/alltypes.h> #if defined(_GNU_SOURCE) || defined(_BSD_SOURCE) |