From: Alexandre Vassalotti Date: Fri, 17 Jul 2009 03:51:27 +0000 (+0000) Subject: Use the proper autoconf macro for checking byte order. X-Git-Tag: v3.2a1~2824 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7aaa770b08e79960073e0e278fee61a5c159335d;p=python Use the proper autoconf macro for checking byte order. The BYTEORDER_IS_BIG_ENDIAN macro is defined Objects/unicodeobject.c, thus the code was always emitting the little-endian machine format codes. This should fix the failure seen on the SPARC buildbot. --- diff --git a/Modules/arraymodule.c b/Modules/arraymodule.c index 236c9529f0..0ac3cab126 100644 --- a/Modules/arraymodule.c +++ b/Modules/arraymodule.c @@ -1526,7 +1526,7 @@ static const struct mformatdescr { static enum machine_format_code typecode_to_mformat_code(int typecode) { -#ifdef BYTEORDER_IS_BIG_ENDIAN +#ifdef WORDS_BIGENDIAN const int is_big_endian = 1; #else const int is_big_endian = 0;