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/main/macros.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/mesa/main/macros.h') diff --git a/src/mesa/main/macros.h b/src/mesa/main/macros.h index 9444975ab1..294c928e35 100644 --- a/src/mesa/main/macros.h +++ b/src/mesa/main/macros.h @@ -1,9 +1,10 @@ +/* $Id: macros.h,v 1.27 2002/06/05 16:48:54 brianp Exp $ */ /* * Mesa 3-D graphics library - * Version: 3.5 + * Version: 4.0.3 * - * Copyright (C) 1999-2001 Brian Paul All Rights Reserved. + * Copyright (C) 1999-2002 Brian Paul All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), @@ -456,7 +457,7 @@ do { \ /* Byte swapping */ -#ifdef __BIG_ENDIAN +#if defined(BYTE_ORDER) && defined(BIG_ENDIAN) && BYTE_ORDER == BIG_ENDIAN #include #define CPU_TO_LE32( x ) bswap_32( x ) #else @@ -492,7 +493,7 @@ do { \ (((a) & 0xe0) | (((b) & 0xe0) >> 3) | (((c) & 0xc0) >> 6)) -#ifdef __BIG_ENDIAN +#if defined(BYTE_ORDER) && defined(BIG_ENDIAN) && BYTE_ORDER == BIG_ENDIAN #define PACK_COLOR_8888_LE( a, b, c, d ) PACK_COLOR_8888( d, c, b, a ) -- cgit v1.2.3