gallium: Factor out unknown endianness detection.
authorMichel Dänzer <daenzer@vmware.com>
Mon, 9 May 2011 10:29:47 +0000 (12:29 +0200)
committerMichel Dänzer <daenzer@vmware.com>
Mon, 9 May 2011 10:29:47 +0000 (12:29 +0200)
src/gallium/include/pipe/p_config.h

index a0aa2df8de350a891374ad01c9499e3c8d5877dd..1818c8b9e9af1cbfddea25f9e4c9fbfaa547d717 100644 (file)
 #define PIPE_ARCH_LITTLE_ENDIAN
 #elif defined(PIPE_ARCH_PPC) || defined(PIPE_ARCH_PPC_64)
 #define PIPE_ARCH_BIG_ENDIAN
-#else
-#error Unknown Endianness
 #endif
 
 #endif
 
+#if !defined(PIPE_ARCH_LITTLE_ENDIAN) && !defined(PIPE_ARCH_BIG_ENDIAN)
+#error Unknown Endianness
+#endif
+
 #if !defined(PIPE_OS_EMBEDDED)
 
 /*