diff options
author | Aapo Tahkola <[email protected]> | 2006-08-12 13:31:15 +0000 |
---|---|---|
committer | Aapo Tahkola <[email protected]> | 2006-08-12 13:31:15 +0000 |
commit | 24cd8e22f5a0fda3a0811976b07755bd8cecb75c (patch) | |
tree | 52ec5a18f1624435440b1e69731c0068cfb89b78 /src | |
parent | 357addfc45ebb8359e0678e2f3c449b79a8bc762 (diff) |
gcc-4.1.1 compile fix
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/drivers/dri/r300/r300_maos.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mesa/drivers/dri/r300/r300_maos.c b/src/mesa/drivers/dri/r300/r300_maos.c index 574a90de581..cba3fd37290 100644 --- a/src/mesa/drivers/dri/r300/r300_maos.c +++ b/src/mesa/drivers/dri/r300/r300_maos.c @@ -486,16 +486,16 @@ int r300EmitArrays(GLcontext *ctx) swizzle[i][ci] = ci; #if MESA_BIG_ENDIAN -#define SWAP(a, b) do { \ - typeof(a) __temp; \ +#define SWAP_INT(a, b) do { \ + int __temp; \ __temp = a;\ a = b; \ b = __temp; \ } while (0) if (VB->AttribPtr[tab[i]].type == GL_UNSIGNED_BYTE) { - SWAP(swizzle[i][0], swizzle[i][3]); - SWAP(swizzle[i][1], swizzle[i][2]); + SWAP_INT(swizzle[i][0], swizzle[i][3]); + SWAP_INT(swizzle[i][1], swizzle[i][2]); } #endif /* MESA_BIG_ENDIAN */ |