Correctly check byte order for newer Android compiler, fix #203

This commit is contained in:
Jan Niklas Hasse 2018-06-20 10:40:25 +02:00
parent 73e08e51ba
commit a80ab01227

View File

@ -184,8 +184,8 @@ inline int fallback_ctz64(ALuint64 value)
#define CTZ64 fallback_ctz64
#endif
#if defined(__BYTE_ORDER__) && defined(__LITTLE_ENDIAN__)
#define IS_LITTLE_ENDIAN (__BYTE_ORDER__ == __LITTLE_ENDIAN__)
#if defined(__BYTE_ORDER__) && defined(__ORDER_LITTLE_ENDIAN__)
#define IS_LITTLE_ENDIAN (__BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__)
#else
static const union {
ALuint u;