diff options
Diffstat (limited to 'py')
-rw-r--r-- | py/mpconfig.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/py/mpconfig.h b/py/mpconfig.h index 8f60c997bd..58ef43d316 100644 --- a/py/mpconfig.h +++ b/py/mpconfig.h @@ -193,6 +193,10 @@ typedef double mp_float_t; // Just because most archs are such? #define MP_ENDIANNESS_LITTLE (1) #endif +// Ensure we don't accidentally set both endiannesses +#if MP_ENDIANNESS_BIG +#define MP_ENDIANNESS_LITTLE (0) +#endif // printf format spec to use for machine_int_t and friends #ifndef INT_FMT |