Commit 5d328cbe authored by Paul Sokolovsky's avatar Paul Sokolovsky
Browse files

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).
parent 5dc8f9b2
...@@ -88,6 +88,10 @@ typedef unsigned int mp_uint_t; // must be pointer size ...@@ -88,6 +88,10 @@ typedef unsigned int mp_uint_t; // must be pointer size
#define BYTES_PER_WORD sizeof(mp_int_t) #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 void *machine_ptr_t; // must be of pointer size
typedef const void *machine_const_ptr_t; // must be of pointer size typedef const void *machine_const_ptr_t; // must be of pointer size
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment