diff options
Diffstat (limited to 'tests/helpers')
-rw-r--r-- | tests/helpers/test_sysinfo.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/tests/helpers/test_sysinfo.c b/tests/helpers/test_sysinfo.c index 9c841dbf8..cb7b66b1a 100644 --- a/tests/helpers/test_sysinfo.c +++ b/tests/helpers/test_sysinfo.c @@ -18,13 +18,8 @@ #include <stdlib.h> #include <string.h> #include <unistd.h> -#include <endian.h> #include <limits.h> -#if !defined __BYTE_ORDER || !(__BYTE_ORDER == __LITTLE_ENDIAN) && !(__BYTE_ORDER == __BIG_ENDIAN) -#error missing __BYTE_ORDER -#endif - typedef struct { const char *name; int (*fnc)(void); @@ -40,7 +35,7 @@ hlp_wordsize(void) int hlp_endianness(void) { -#if (__BYTE_ORDER == __LITTLE_ENDIAN) +#if !defined(WORDS_BIGENDIAN) printf("LE\n"); #else printf("BE\n"); |