Mesa (master): Don't allow compilation if endianness isn't known

Michel Dänzer daenzer at kemper.freedesktop.org
Mon May 9 13:26:30 UTC 2011


Module: Mesa
Branch: master
Commit: 991c1f024977c327e762f5275edbe874c819c85f
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=991c1f024977c327e762f5275edbe874c819c85f

Author: Matt Turner <mattst88 at gmail.com>
Date:   Mon May  9 00:17:04 2011 -0400

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 <mattst88 at gmail.com>

---

 src/gallium/include/pipe/p_config.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/gallium/include/pipe/p_config.h b/src/gallium/include/pipe/p_config.h
index d48188e..a0aa2df 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




More information about the mesa-commit mailing list