projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
357addf
)
gcc-4.1.1 compile fix
author
Aapo Tahkola
<aet@rasterburn.org>
Sat, 12 Aug 2006 13:31:15 +0000
(13:31 +0000)
committer
Aapo Tahkola
<aet@rasterburn.org>
Sat, 12 Aug 2006 13:31:15 +0000
(13:31 +0000)
src/mesa/drivers/dri/r300/r300_maos.c
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/r300/r300_maos.c
b/src/mesa/drivers/dri/r300/r300_maos.c
index 574a90de5814d2899950359e3b3453da75501133..cba3fd372905f9b949e1c71f87dd8211d20043dd 100644
(file)
--- 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 */