summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorAlexandre Vassalotti <alexandre@peadrop.com>2009-07-17 03:51:27 (GMT)
committerAlexandre Vassalotti <alexandre@peadrop.com>2009-07-17 03:51:27 (GMT)
commit7aaa770b08e79960073e0e278fee61a5c159335d (patch)
treefd5b8bf6f10b1a977f06f6a7109536061e3fb123 /Modules
parentf8926b2efeb1cd719736c42a14e2a92558c81aed (diff)
downloadcpython-7aaa770b08e79960073e0e278fee61a5c159335d.zip
cpython-7aaa770b08e79960073e0e278fee61a5c159335d.tar.gz
cpython-7aaa770b08e79960073e0e278fee61a5c159335d.tar.bz2
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.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/arraymodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/arraymodule.c b/Modules/arraymodule.c
index 236c952..0ac3cab 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;