diff options
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2014-10-06 23:18:59 +0300 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2014-10-06 23:18:59 +0300 |
commit | 5d328cbeb901c31763f044a078ae3f5ed31acee8 (patch) | |
tree | be6a6c2164dff372b71e4fc4bc3859c4858794f9 | |
parent | 5dc8f9b28aff60ee3bcb649703de19aed8826101 (diff) |
windows: mingw32 gcc doesn't define endianness macros, so just assume little.
Specifically, at least Ubuntu's i586-mingw32msvc-gcc doesn't supply
__LITTLE_ENDIAN__ and friends. And as it's safe enough to assume that
Windows is only little-endian, then it's defined unconditionally,
instead of duplicating detection logic in py/mpconfig.h (or adding
windows-specific defines to it).
-rw-r--r-- | windows/mpconfigport.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/windows/mpconfigport.h b/windows/mpconfigport.h index 9e666e3f3..f71be5d11 100644 --- a/windows/mpconfigport.h +++ b/windows/mpconfigport.h @@ -88,6 +88,10 @@ typedef unsigned int mp_uint_t; // must be pointer size #define BYTES_PER_WORD sizeof(mp_int_t) +// Just assume Windows is little-endian - mingw32 gcc doesn't +// define standard endianness macros. +#define MP_ENDIANNESS_LITTLE (1) + typedef void *machine_ptr_t; // must be of pointer size typedef const void *machine_const_ptr_t; // must be of pointer size |