From: Michel Dänzer Date: Mon, 9 May 2011 10:29:47 +0000 (+0200) Subject: gallium: Factor out unknown endianness detection. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9d792d013c206facf78b9529761d9f814d2778c0;p=mesa.git gallium: Factor out unknown endianness detection. --- diff --git a/src/gallium/include/pipe/p_config.h b/src/gallium/include/pipe/p_config.h index a0aa2df8de3..1818c8b9e9a 100644 --- a/src/gallium/include/pipe/p_config.h +++ b/src/gallium/include/pipe/p_config.h @@ -126,12 +126,14 @@ #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) /*