Mesa (master): gallium: Factor out unknown endianness detection.

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


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

Author: Michel Dänzer <daenzer at vmware.com>
Date:   Mon May  9 12:29:47 2011 +0200

gallium: Factor out unknown endianness detection.

---

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

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




More information about the mesa-commit mailing list