mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 18:31:55 -04:00
WORDS_BIGENDIAN instead of IS_BIG_ENDIAN
This commit is contained in:
parent
ca8577be86
commit
87e0b810be
@ -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;
|
||||
|
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user