From edea87529ef3505a3f5f6b12d9c6c7f46fa88b89 Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Mon, 7 Jun 2004 00:29:40 +0000 Subject: make endian code work on BSD --- src/mesa/drivers/dri/mach64/mach64_context.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src') diff --git a/src/mesa/drivers/dri/mach64/mach64_context.h b/src/mesa/drivers/dri/mach64/mach64_context.h index e61083f821..3d76de754a 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) ) -- cgit v1.2.3