From a80ab012270bc38f6e07f535e445051af3b85349 Mon Sep 17 00:00:00 2001 From: Jan Niklas Hasse Date: Wed, 20 Jun 2018 10:40:25 +0200 Subject: Correctly check byte order for newer Android compiler, fix #203 --- OpenAL32/Include/alMain.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'OpenAL32/Include/alMain.h') diff --git a/OpenAL32/Include/alMain.h b/OpenAL32/Include/alMain.h index 093f7950..74dba1ad 100644 --- a/OpenAL32/Include/alMain.h +++ b/OpenAL32/Include/alMain.h @@ -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; -- cgit v1.2.3