From f9b107d876327a115509e2740a75f15912176851 Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Mon, 7 Jun 2004 12:51:05 +0000 Subject: use the mesa defines --- src/mesa/drivers/dri/mach64/mach64_context.h | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'src/mesa/drivers/dri') diff --git a/src/mesa/drivers/dri/mach64/mach64_context.h b/src/mesa/drivers/dri/mach64/mach64_context.h index 3d76de754ad..1f5f618804b 100644 --- a/src/mesa/drivers/dri/mach64/mach64_context.h +++ b/src/mesa/drivers/dri/mach64/mach64_context.h @@ -355,16 +355,7 @@ 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 +#if MESA_LITTLE_ENDIAN == 1 #define LE32_IN( x ) ( *(GLuint *)(x) ) #define LE32_IN_FLOAT( x ) ( *(GLfloat *)(x) ) #define LE32_OUT( x, y ) do { *(GLuint *)(x) = (y); } while (0) -- cgit v1.2.3