diff options
Diffstat (limited to 'include/endian.h')
-rw-r--r-- | include/endian.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/endian.h b/include/endian.h index 9652c30b..41ca1711 100644 --- a/include/endian.h +++ b/include/endian.h @@ -5,7 +5,11 @@ #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 #if defined(_GNU_SOURCE) || defined(_BSD_SOURCE) |