summaryrefslogtreecommitdiff
path: root/include/SDL_endian.h
diff options
context:
space:
mode:
authorSam Lantinga <slouken@libsdl.org>2006-03-06 16:33:23 +0000
committerSam Lantinga <slouken@libsdl.org>2006-03-06 16:33:23 +0000
commite8064cd6a74a823e0b2d8a2292f21722eab18390 (patch)
treed82fa9ceb60eb6ee4d255b023d66e683416f8694 /include/SDL_endian.h
parentea41a3dee5ce95044bd377efcd6c4f08c0352f0c (diff)
downloadsdl-e8064cd6a74a823e0b2d8a2292f21722eab18390.tar.gz
Maybe it's easier to collect the big-endian architectures. :)
Diffstat (limited to 'include/SDL_endian.h')
-rw-r--r--include/SDL_endian.h17
1 files changed, 7 insertions, 10 deletions
diff --git a/include/SDL_endian.h b/include/SDL_endian.h
index 40cf0bc42..1fb772e22 100644
--- a/include/SDL_endian.h
+++ b/include/SDL_endian.h
@@ -32,17 +32,14 @@
#define SDL_BIG_ENDIAN 4321
#ifndef SDL_BYTEORDER /* Not defined in SDL_config.h? */
-#if (defined(__i386__) || defined(__i386)) || \
- defined(_M_IX86) || \
- defined(__ia64__) || defined(__x86_64__) || \
- (defined(__alpha__) || defined(__alpha)) || \
- (defined(__arm__) || defined(__thumb__) || defined(_ARM_)) || \
- (defined(__sh__) || defined(__sh64__) || defined(_SH4_)) || \
- (defined(__mips__) && defined(__MIPSEL__)) || \
- defined(__SYMBIAN32__) || defined(__OS2__)
-#define SDL_BYTEORDER SDL_LIL_ENDIAN
-#else
+#if defined(__hppa__) || \
+ defined(__m68k__) || defined(mc68000) || \
+ (defined(__MIPS__) && defined(__MISPEB__)) || \
+ defined(__ppc__) || defined(__POWERPC__) || \
+ defined(__sparc__)
#define SDL_BYTEORDER SDL_BIG_ENDIAN
+#else
+#define SDL_BYTEORDER SDL_LIL_ENDIAN
#endif
#endif /* !SDL_BYTEORDER */