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.
This commit is contained in:
Alexandre Vassalotti 2009-07-17 03:51:27 +00:00
parent f8926b2efe
commit 7aaa770b08
1 changed files with 1 additions and 1 deletions

View File

@ -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;