From: Jeremy Huddleston Date: Tue, 31 Mar 2009 22:08:49 +0000 (-0700) Subject: Updated CPU_TO_LE32 to work on darwin X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=093ad509fcee5cb3a890663fc80ed671dcaf4000;p=mesa.git Updated CPU_TO_LE32 to work on darwin --- diff --git a/src/mesa/main/compiler.h b/src/mesa/main/compiler.h index 39b19bb7767..93103fe878d 100644 --- a/src/mesa/main/compiler.h +++ b/src/mesa/main/compiler.h @@ -230,7 +230,10 @@ extern "C" { #if defined(__linux__) #include #define CPU_TO_LE32( x ) bswap_32( x ) -#else /*__linux__*/ +#elif defined(__APPLE__) +#include +#define CPU_TO_LE32( x ) CFSwapInt32HostToLittle( x ) +#else /*__linux__ __APPLE__*/ #include #define CPU_TO_LE32( x ) bswap32( x ) #endif /*__linux__*/