From 2af20c35be519b75c04759bfa79050e3ba4b9e95 Mon Sep 17 00:00:00 2001 From: Ryan Schmidt Date: Sun, 5 Jul 2020 09:15:28 -0500 Subject: [PATCH] Fix detection of big-endian systems --- DevIL/src-IL/include/il_endian.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/DevIL/src-IL/include/il_endian.h b/DevIL/src-IL/include/il_endian.h index 87a0c835..394103af 100644 --- a/DevIL/src-IL/include/il_endian.h +++ b/DevIL/src-IL/include/il_endian.h @@ -25,7 +25,7 @@ extern "C" { #endif #endif -#if (defined(__BYTE_ORDER__) && __BYTE_ORDER__ == __BIG_ENDIAN__) \ +#if (defined(__BYTE_ORDER__) && __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__) \ || (defined(__BIG_ENDIAN__) && !defined(__LITTLE_ENDIAN__)) #undef __LITTLE_ENDIAN__ #define Short(s) iSwapShort(s) @@ -105,4 +105,4 @@ void EndianSwapData(void *_Image); } #endif -#endif//ENDIAN_H \ No newline at end of file +#endif//ENDIAN_H