From f32498fe04c959e9696d5409adc33f1f518ec76e Mon Sep 17 00:00:00 2001 From: Damien George Date: Mon, 6 Oct 2014 16:09:31 +0000 Subject: [PATCH] py: Extra autodetect for little endianness using __LITTLE_ENDIAN__. --- py/mpconfig.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/py/mpconfig.h b/py/mpconfig.h index 6056e20436..bf868624d9 100644 --- a/py/mpconfig.h +++ b/py/mpconfig.h @@ -448,6 +448,8 @@ typedef double mp_float_t; #else #define MP_ENDIANNESS_LITTLE (0) #endif + #elif defined(__LITTLE_ENDIAN__) || defined(__LITTLE_ENDIAN) || defined (_LITTLE_ENDIAN) + #define MP_ENDIANNESS_LITTLE (1) #elif defined(__BIG_ENDIAN__) || defined(__BIG_ENDIAN) || defined (_BIG_ENDIAN) #define MP_ENDIANNESS_LITTLE (0) #else