Add solaris detection for PIPE_ARCH_LITTLE_ENDIAN/PIPE_ARCH_BIG_ENDIAN
authorAlan Coopersmith <alan.coopersmith@oracle.com>
Tue, 18 Oct 2011 21:04:15 +0000 (14:04 -0700)
committerAlan Coopersmith <alan.coopersmith@oracle.com>
Fri, 21 Oct 2011 00:02:12 +0000 (17:02 -0700)
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
src/gallium/include/pipe/p_config.h

index b3a7b337bc63c0a7fcc8482e57f6aac2b7d7e9be..7cd42c6f71cfda9c873b9a10a8535e5a359d0ed4 100644 (file)
 # 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)