|
|
#include "win32_compat.h" | #include "win32_compat.h" |
#elif (defined PLATFORM_UNIX) | #elif (defined PLATFORM_UNIX) |
#include "unix_compat.h" | #include "unix_compat.h" |
|
#include <endian.h> |
#elif (defined PLATFORM_DOS) | #elif (defined PLATFORM_DOS) |
#include "doscmpat.h" | #include "doscmpat.h" |
#else | #else |
|
|
#define BUILDSWAP_INTEL16(x) _swap16(x) | #define BUILDSWAP_INTEL16(x) _swap16(x) |
#define BUILDSWAP_INTEL32(x) _swap32(x) | #define BUILDSWAP_INTEL32(x) _swap32(x) |
#else | #else |
|
#if __BYTE_ORDER == __LITTLE_ENDIAN |
#define PLATFORM_LITTLEENDIAN 1 | #define PLATFORM_LITTLEENDIAN 1 |
#define BUILDSWAP_INTEL16(x) (x) | #define BUILDSWAP_INTEL16(x) (x) |
#define BUILDSWAP_INTEL32(x) (x) | #define BUILDSWAP_INTEL32(x) (x) |
|
#else |
|
#define PLATFORM_BIGENDIAN 1 |
|
#define BUILDSWAP_INTEL16(x) _swap16(x) |
|
#define BUILDSWAP_INTEL32(x) _swap32(x) |
|
#endif |
#endif | #endif |
| |
extern int has_altivec; /* PowerPC-specific. */ | extern int has_altivec; /* PowerPC-specific. */ |