Don't allow compilation if endianness isn't known
authorMatt Turner <mattst88@gmail.com>
Mon, 9 May 2011 04:17:04 +0000 (00:17 -0400)
committerMichel Dänzer <daenzer@vmware.com>
Mon, 9 May 2011 10:23:21 +0000 (12:23 +0200)
PIPE_ARCH_UNKNOWN_ENDIAN is used no where else. All #else branches of
ifdef PIPE_ARCH_LITTLE assume big-endian. Not #error'ing out here
only serves to allow bad things to happen.

Signed-off-by: Matt Turner <mattst88@gmail.com>
src/gallium/include/pipe/p_config.h

index d48188e..a0aa2df 100644 (file)
 #elif defined(PIPE_ARCH_PPC) || defined(PIPE_ARCH_PPC_64)
 #define PIPE_ARCH_BIG_ENDIAN
 #else
-#define PIPE_ARCH_UNKNOWN_ENDIAN
+#error Unknown Endianness
 #endif
 
 #endif