Updated byte order tests to match what SDL does now.
That is: you're more likely to be on Linux or a little-endian machine, so deal with the non-Linux bigendian as the exceptional case.
This commit is contained in:
parent
32d4f4541e
commit
c3cc732a70
|
@ -131,18 +131,20 @@ void __PHYSFS_smallFree(void *ptr);
|
||||||
#define PHYSFS_LIL_ENDIAN 1234
|
#define PHYSFS_LIL_ENDIAN 1234
|
||||||
#define PHYSFS_BIG_ENDIAN 4321
|
#define PHYSFS_BIG_ENDIAN 4321
|
||||||
|
|
||||||
#if defined(__i386__) || defined(__ia64__) || \
|
#ifdef __linux__
|
||||||
defined(_M_IX86) || defined(_M_IA64) || defined(_M_X64) || \
|
#include <endian.h>
|
||||||
(defined(__alpha__) || defined(__alpha)) || \
|
#define PHYSFS_BYTEORDER __BYTE_ORDER
|
||||||
defined(__arm__) || defined(ARM) || defined(_M_ARM) || \
|
#else /* __linux__ */
|
||||||
(defined(__mips__) && defined(__MIPSEL__)) || \
|
#if defined(__hppa__) || \
|
||||||
defined(__SYMBIAN32__) || \
|
defined(__m68k__) || defined(mc68000) || defined(_M_M68K) || \
|
||||||
defined(__x86_64__) || \
|
(defined(__MIPS__) && defined(__MISPEB__)) || \
|
||||||
defined(__LITTLE_ENDIAN__)
|
defined(__ppc__) || defined(__POWERPC__) || defined(_M_PPC) || \
|
||||||
#define PHYSFS_BYTEORDER PHYSFS_LIL_ENDIAN
|
defined(__sparc__)
|
||||||
#else
|
|
||||||
#define PHYSFS_BYTEORDER PHYSFS_BIG_ENDIAN
|
#define PHYSFS_BYTEORDER PHYSFS_BIG_ENDIAN
|
||||||
|
#else
|
||||||
|
#define PHYSFS_BYTEORDER PHYSFS_LIL_ENDIAN
|
||||||
#endif
|
#endif
|
||||||
|
#endif /* __linux__ */
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in New Issue