mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 02:15:43 -04:00
endian badness
This commit is contained in:
parent
d51e8e9c50
commit
d6ed3123bb
@ -33,10 +33,10 @@
|
|||||||
// unchanged for big-endian machines.
|
// unchanged for big-endian machines.
|
||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
#ifdef IS_LITTLE_ENDIAN
|
#ifdef WORDS_BIGENDIAN
|
||||||
typedef ReversedNumericData BigEndian;
|
|
||||||
#else
|
|
||||||
typedef NativeNumericData BigEndian;
|
typedef NativeNumericData BigEndian;
|
||||||
|
#else
|
||||||
|
typedef ReversedNumericData BigEndian;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
#ifndef LITTLEENDIAN_H
|
#ifndef LITTLEENDIAN_H
|
||||||
#define LITTLEENDIAN_H
|
#define LITTLEENDIAN_H
|
||||||
|
|
||||||
#include <pandabase.h>
|
#include "pandabase.h"
|
||||||
|
|
||||||
#include "numeric_types.h"
|
#include "numeric_types.h"
|
||||||
#include "nativeNumericData.h"
|
#include "nativeNumericData.h"
|
||||||
@ -33,10 +33,10 @@
|
|||||||
// unchanged for little-endian machines.
|
// unchanged for little-endian machines.
|
||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
#ifdef IS_LITTLE_ENDIAN
|
#ifdef WORDS_BIGENDIAN
|
||||||
typedef NativeNumericData LittleEndian;
|
|
||||||
#else
|
|
||||||
typedef ReversedNumericData LittleEndian;
|
typedef ReversedNumericData LittleEndian;
|
||||||
|
#else
|
||||||
|
typedef NativeNumericData LittleEndian;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -27,10 +27,6 @@
|
|||||||
// Later (especially for non-NSPR platforms) we'll have to do the work
|
// Later (especially for non-NSPR platforms) we'll have to do the work
|
||||||
// ourselves.
|
// ourselves.
|
||||||
|
|
||||||
// This file also defines one of the macros IS_BIG_ENDIAN or
|
|
||||||
// IS_LITTLE_ENDIAN, as appropriate. (In the case of NSPR, these are
|
|
||||||
// defined automatically.)
|
|
||||||
|
|
||||||
|
|
||||||
#ifdef HAVE_NSPR
|
#ifdef HAVE_NSPR
|
||||||
|
|
||||||
@ -71,12 +67,6 @@ typedef unsigned long PN_uint32;
|
|||||||
|
|
||||||
typedef double PN_float64;
|
typedef double PN_float64;
|
||||||
|
|
||||||
#ifdef WORDS_BIGENDIAN
|
|
||||||
#undef IS_LITTLE_ENDIAN
|
|
||||||
#else
|
|
||||||
#define IS_LITTLE_ENDIAN 1
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif // HAVE_NSPR
|
#endif // HAVE_NSPR
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user