From: Martin Pieuchot Date: Wed, 29 Aug 2012 12:46:27 +0000 (+0200) Subject: mesa: Define CPU_TO_LE32 to work on OpenBSD X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c4c4d4ad1e2dd25656543bac5bde3a59b85e22b8;p=mesa.git mesa: Define CPU_TO_LE32 to work on OpenBSD Signed-off-by: Brian Paul --- diff --git a/src/mesa/main/compiler.h b/src/mesa/main/compiler.h index bfa06f37d7c..94484d8f3bc 100644 --- a/src/mesa/main/compiler.h +++ b/src/mesa/main/compiler.h @@ -241,6 +241,9 @@ static INLINE GLuint CPU_TO_LE32(GLuint x) ((x & 0x00ff0000) >> 8) | ((x & 0xff000000) >> 24)); } +#elif defined(__OpenBSD__) +#include +#define CPU_TO_LE32( x ) htole32( x ) #else /*__linux__ */ #include #define CPU_TO_LE32( x ) bswap32( x )