Mercurial > sdl-ios-xcode
comparison include/SDL_byteorder.h @ 24:71bf2ad74dfa
Fixed endian detection on IA64 architectures (thanks Bill!)
author | Sam Lantinga <slouken@lokigames.com> |
---|---|
date | Thu, 10 May 2001 20:25:51 +0000 |
parents | cf2af46e9e2a |
children | 83018110dce8 |
comparison
equal
deleted
inserted
replaced
23:6d1025a73e69 | 24:71bf2ad74dfa |
---|---|
37 /* Pardon the mess, I'm trying to determine the endianness of this host. | 37 /* Pardon the mess, I'm trying to determine the endianness of this host. |
38 I'm doing it by preprocessor defines rather than some sort of configure | 38 I'm doing it by preprocessor defines rather than some sort of configure |
39 script so that application code can use this too. The "right" way would | 39 script so that application code can use this too. The "right" way would |
40 be to dynamically generate this file on install, but that's a lot of work. | 40 be to dynamically generate this file on install, but that's a lot of work. |
41 */ | 41 */ |
42 #if defined(__i386__) || defined(WIN32) || \ | 42 #if defined(__i386__) || defined(__ia64__) || defined(WIN32) || \ |
43 (defined(__alpha__) || defined(__alpha)) || \ | 43 (defined(__alpha__) || defined(__alpha)) || \ |
44 defined(__arm__) || \ | 44 defined(__arm__) || \ |
45 (defined(__mips__) && defined(__MIPSEL__)) || \ | 45 (defined(__mips__) && defined(__MIPSEL__)) || \ |
46 defined(__LITTLE_ENDIAN__) | 46 defined(__LITTLE_ENDIAN__) |
47 #define SDL_BYTEORDER SDL_LIL_ENDIAN | 47 #define SDL_BYTEORDER SDL_LIL_ENDIAN |