diff options
author | Alan Coopersmith <[email protected]> | 2011-10-18 14:04:15 -0700 |
---|---|---|
committer | Alan Coopersmith <[email protected]> | 2011-10-20 17:02:12 -0700 |
commit | b27298055efdae61402ca55ef175f60ba16536f3 (patch) | |
tree | 1e8fca1813d6f90b116777b94a6f3767a971302d /src/gallium/include/pipe | |
parent | 6e160d01f2c6667cba89e5fa806f9e4b01ca8ced (diff) |
Add solaris detection for PIPE_ARCH_LITTLE_ENDIAN/PIPE_ARCH_BIG_ENDIAN
Signed-off-by: Alan Coopersmith <[email protected]>
Diffstat (limited to 'src/gallium/include/pipe')
-rw-r--r-- | 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 b3a7b337bc6..7cd42c6f71c 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) |