diff options
author | Brian Paul <[email protected]> | 2002-06-05 16:48:54 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2002-06-05 16:48:54 +0000 |
commit | af2a1c1d679f870a8f30b17d3cf308807be3fb0e (patch) | |
tree | 33d9edf267a85fcda77be88e5150324051700a9d /src/mesa/drivers/common | |
parent | 28b03c6acb203bd4b523ea5ed39920bc52fc8fe5 (diff) |
more big-endian tweaks
Diffstat (limited to 'src/mesa/drivers/common')
-rw-r--r-- | src/mesa/drivers/common/t_dd_vertex.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mesa/drivers/common/t_dd_vertex.h b/src/mesa/drivers/common/t_dd_vertex.h index 01773af7aab..ba031fc0bb8 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; |