FS-9424: Make big endian ifdefs more specific
This commit is contained in:
parent
7aa97b76a5
commit
0c9ab17c60
|
@ -140,7 +140,10 @@ typedef int gid_t;
|
||||||
#ifdef SWITCH_BYTE_ORDER
|
#ifdef SWITCH_BYTE_ORDER
|
||||||
#define __BYTE_ORDER SWITCH_BYTE_ORDER
|
#define __BYTE_ORDER SWITCH_BYTE_ORDER
|
||||||
/* solaris */
|
/* solaris */
|
||||||
#elif defined(_BIG_ENDIAN)
|
#elif defined(__SVR4) && defined(__sun) && defined(_BIG_ENDIAN)
|
||||||
|
#define __BYTE_ORDER __BIG_ENDIAN
|
||||||
|
/* BSD */
|
||||||
|
#elif defined(BYTE_ORDER) && (BYTE_ORDER == BIG_ENDIAN)
|
||||||
#define __BYTE_ORDER __BIG_ENDIAN
|
#define __BYTE_ORDER __BIG_ENDIAN
|
||||||
#else
|
#else
|
||||||
#define __BYTE_ORDER __LITTLE_ENDIAN
|
#define __BYTE_ORDER __LITTLE_ENDIAN
|
||||||
|
|
Loading…
Reference in New Issue