WORDS_BIGENDIAN instead of IS_BIG_ENDIAN

This commit is contained in:
David Rose 2002-08-05 18:10:27 +00:00
parent ca8577be86
commit 87e0b810be
2 changed files with 5 additions and 7 deletions

View File

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

View File

@ -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 <vector>
#include <map>