Mesa (master): Add solaris detection for PIPE_ARCH_LITTLE_ENDIAN/ PIPE_ARCH_BIG_ENDIAN

Alan Coopersmith alanc at kemper.freedesktop.org
Fri Oct 21 00:02:43 UTC 2011


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

Author: Alan Coopersmith <alan.coopersmith at oracle.com>
Date:   Tue Oct 18 14:04:15 2011 -0700

Add solaris detection for PIPE_ARCH_LITTLE_ENDIAN/PIPE_ARCH_BIG_ENDIAN

Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>

---

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

diff --git a/src/gallium/include/pipe/p_config.h b/src/gallium/include/pipe/p_config.h
index b3a7b33..7cd42c6 100644
--- a/src/gallium/include/pipe/p_config.h
+++ b/src/gallium/include/pipe/p_config.h
@@ -129,6 +129,15 @@
 # define PIPE_ARCH_BIG_ENDIAN
 #endif
 
+#elif defined(__sun)
+#include <sys/isa_defs.h>
+
+#if defined(_LITTLE_ENDIAN)
+# define PIPE_ARCH_LITTLE_ENDIAN
+#elif defined(_BIG_ENDIAN)
+# define PIPE_ARCH_BIG_ENDIAN
+#endif
+
 #else
 
 #if defined(PIPE_ARCH_X86) || defined(PIPE_ARCH_X86_64)




More information about the mesa-commit mailing list