From 7aaa770b08e79960073e0e278fee61a5c159335d Mon Sep 17 00:00:00 2001 From: Alexandre Vassalotti Date: Fri, 17 Jul 2009 03:51:27 +0000 Subject: [PATCH] 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. --- Modules/arraymodule.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/arraymodule.c b/Modules/arraymodule.c index 236c9529f0c..0ac3cab126f 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;