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 d48188e24f310990d0c3f1c5e4e8742eca6a3517..a0aa2df8de350a891374ad01c9499e3c8d5877dd 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