From: Matt Turner Date: Mon, 9 May 2011 04:17:04 +0000 (-0400) Subject: Don't allow compilation if endianness isn't known X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=991c1f024977c327e762f5275edbe874c819c85f;p=mesa.git Don't allow compilation if endianness isn't known 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 --- diff --git a/src/gallium/include/pipe/p_config.h b/src/gallium/include/pipe/p_config.h index d48188e24f3..a0aa2df8de3 100644 --- a/src/gallium/include/pipe/p_config.h +++ b/src/gallium/include/pipe/p_config.h @@ -127,7 +127,7 @@ #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