From aabe2441765c632bba697945491e3e0ac29ac886 Mon Sep 17 00:00:00 2001 From: Fabian Groffen Date: Sat, 8 Jan 2011 19:49:38 +0100 Subject: build-sys: use WORDS_BIGENDIAN to determine platform byte-order Autoconf contains the right magic to determine the endianness on many platforms next to Linux. This reverses previous commits to move away from WORDS_BIGENDIAN: "use __BYTE_ORDER rather than AC specific WORDS_BIGENDIAN" This is necessary to compile on non Linux platforms like Darwin and Solaris. Signed-off-by: Fabian Groffen --- sys-utils/lscpu.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'sys-utils/lscpu.c') diff --git a/sys-utils/lscpu.c b/sys-utils/lscpu.c index 224d5f99b..16e6b9a1e 100644 --- a/sys-utils/lscpu.c +++ b/sys-utils/lscpu.c @@ -818,12 +818,10 @@ print_readable(struct lscpu_desc *desc, int hex) *(p - 2) = '\0'; print_s(_("CPU op-mode(s):"), buf); } -#ifdef __BYTE_ORDER -#if (__BYTE_ORDER == __LITTLE_ENDIAN) +#if !defined(WORDS_BIGENDIAN) print_s(_("Byte Order:"), "Little Endian"); #else print_s(_("Byte Order:"), "Big Endian"); -#endif #endif print_n(_("CPU(s):"), desc->ncpus); -- cgit v1.2.3-55-g7522