From: Dave Airlie Date: Mon, 7 Jun 2004 00:29:40 +0000 (+0000) Subject: make endian code work on BSD X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=edea87529ef3505a3f5f6b12d9c6c7f46fa88b89;p=mesa.git make endian code work on BSD --- diff --git a/src/mesa/drivers/dri/mach64/mach64_context.h b/src/mesa/drivers/dri/mach64/mach64_context.h index e61083f821b..3d76de754ad 100644 --- a/src/mesa/drivers/dri/mach64/mach64_context.h +++ b/src/mesa/drivers/dri/mach64/mach64_context.h @@ -355,7 +355,14 @@ extern GLboolean mach64UnbindContext( __DRIcontextPrivate *driContextPriv ); /* ================================================================ * Byte ordering */ +#ifdef __linux__ #include +#else +#include +#define __BYTE_ORDER BYTE_ORDER +#define __LITTLE_ENDIAN LITTLE_ENDIAN +#define __BIG_ENDIAN BIG_ENDIAN +#endif #if __BYTE_ORDER == __LITTLE_ENDIAN #define LE32_IN( x ) ( *(GLuint *)(x) )