From af2a1c1d679f870a8f30b17d3cf308807be3fb0e Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Wed, 5 Jun 2002 16:48:54 +0000 Subject: more big-endian tweaks --- src/mesa/drivers/common/t_dd_vertex.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/mesa/drivers/common') diff --git a/src/mesa/drivers/common/t_dd_vertex.h b/src/mesa/drivers/common/t_dd_vertex.h index 01773af7aa..ba031fc0bb 100644 --- a/src/mesa/drivers/common/t_dd_vertex.h +++ b/src/mesa/drivers/common/t_dd_vertex.h @@ -1,4 +1,4 @@ -/* $Id: t_dd_vertex.h,v 1.10 2002/06/03 16:06:35 brianp Exp $ */ +/* $Id: t_dd_vertex.h,v 1.11 2002/06/05 16:48:54 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -33,7 +33,7 @@ typedef struct { #ifdef COLOR_IS_RGBA typedef struct { -#ifdef __BIG_ENDIAN +#if defined(BYTE_ORDER) && defined(BIG_ENDIAN) && BYTE_ORDER == BIG_ENDIAN GLubyte alpha, blue, green, red; #else GLubyte red, green, blue, alpha; @@ -41,7 +41,7 @@ typedef struct { } TAG(_color_t); #else typedef struct { -#ifdef __BIG_ENDIAN +#if defined(BYTE_ORDER) && defined(BIG_ENDIAN) && BYTE_ORDER == BIG_ENDIAN GLubyte alpha, red, green, blue; #else GLubyte blue, green, red, alpha; -- cgit v1.2.3