Maybe it's easier to collect the big-endian architectures. :)
authorSam Lantinga <slouken@libsdl.org>
Mon, 06 Mar 2006 16:33:23 +0000
changeset 1474 351d757c7edd
parent 1473 73777b138913
child 1475 d45aefcac017
Maybe it's easier to collect the big-endian architectures. :)
include/SDL_endian.h
--- a/include/SDL_endian.h	Mon Mar 06 15:29:41 2006 +0000
+++ b/include/SDL_endian.h	Mon Mar 06 16:33:23 2006 +0000
@@ -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__)
+#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
-#else
-#define SDL_BYTEORDER	SDL_BIG_ENDIAN
 #endif
 #endif /* !SDL_BYTEORDER */