From 43c7c212a10243766f7cb6a7e99243c85e7ba546 Mon Sep 17 00:00:00 2001 From: Martin Pieuchot Date: Wed, 29 Aug 2012 14:46:27 +0200 Subject: [PATCH] mesa: Define CPU_TO_LE32 to work on OpenBSD --- src/mesa/main/compiler.h | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/src/mesa/main/compiler.h b/src/mesa/main/compiler.h index bfa06f3..94484d8 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 ) -- 1.7.6