projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0f7325b
)
glsl: Define va_copy on MSVC.
author
José Fonseca
<jfonseca@vmware.com>
Mon, 31 Jan 2011 20:52:18 +0000
(20:52 +0000)
committer
José Fonseca
<jfonseca@vmware.com>
Mon, 31 Jan 2011 20:53:03 +0000
(20:53 +0000)
src/glsl/ralloc.c
patch
|
blob
|
history
diff --git
a/src/glsl/ralloc.c
b/src/glsl/ralloc.c
index e92f433e336077df46596eb5370a7a56def61897..fa2dd8b01e66ae9d4792133054236e9a2184ae53 100644
(file)
--- a/
src/glsl/ralloc.c
+++ b/
src/glsl/ralloc.c
@@
-38,6
+38,14
@@
#define unlikely(x) !!(x)
#endif
+#ifndef va_copy
+#ifdef __va_copy
+#define va_copy(dest, src) __va_copy((dest), (src))
+#else
+#define va_copy(dest, src) (dest) = (src)
+#endif
+#endif
+
#define CANARY 0x5A1106
struct ralloc_header