diff --git a/direct/src/dcparser/dcAtomicField.cxx b/direct/src/dcparser/dcAtomicField.cxx index 7a20ff47a5..7cefdc350d 100644 --- a/direct/src/dcparser/dcAtomicField.cxx +++ b/direct/src/dcparser/dcAtomicField.cxx @@ -297,7 +297,7 @@ format_default_value(double num, string &formatted) const { case ST_float64: // This may not be fully portable. formatted = string((char *)&real_value, 8); -#ifdef IS_BIG_ENDIAN +#ifdef WORDS_BIGENDIAN { // Reverse the byte ordering for big-endian machines. string str; diff --git a/direct/src/dcparser/dcbase.h b/direct/src/dcparser/dcbase.h index 55a32a12e1..2944fe3073 100644 --- a/direct/src/dcparser/dcbase.h +++ b/direct/src/dcparser/dcbase.h @@ -93,12 +93,10 @@ using namespace std; // string instead. typedef string Filename; -// Panda defines IS_BIG_ENDIAN or IS_LITTLE_ENDIAN as appropriate. -// Outside of panda, you'll have to do it yourself. If neither is -// defined, we'll assume IS_LITTLE_ENDIAN. -#if !defined(IS_BIG_ENDIAN) && !defined(IS_LITTLE_ENDIAN) -#define IS_LITTLE_ENDIAN -#endif +// Panda defines WORDS_BIGENDIAN on a bigendian machine; otherwise, +// the machine is assumed to be littleendian. Outside of Panda, +// you're responsible for defining this yourself if necessary. +//#define WORDS_BIGENDIAN #include #include