Merge pull request #960 in FS/freeswitch from ~SJTHOMASON/freeswitch:bugfix/FS-9424-__byte_order-macro-not-defined-correctly to master
* commit '0c9ab17c60a1b92e72781a01f5bdb90af18a0265': FS-9424: Make big endian ifdefs more specific
This commit is contained in:
commit
3a99f641f8
|
@ -140,7 +140,10 @@ typedef int gid_t;
|
|||
#ifdef SWITCH_BYTE_ORDER
|
||||
#define __BYTE_ORDER SWITCH_BYTE_ORDER
|
||||
/* 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
|
||||
#else
|
||||
#define __BYTE_ORDER __LITTLE_ENDIAN
|
||||
|
|
Loading…
Reference in New Issue