From: Alan Coopersmith Date: Tue, 18 Oct 2011 21:04:15 +0000 (-0700) Subject: Add solaris detection for PIPE_ARCH_LITTLE_ENDIAN/PIPE_ARCH_BIG_ENDIAN X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b27298055efdae61402ca55ef175f60ba16536f3;p=mesa.git Add solaris detection for PIPE_ARCH_LITTLE_ENDIAN/PIPE_ARCH_BIG_ENDIAN Signed-off-by: Alan Coopersmith --- 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 + +#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)