summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosé Fonseca <[email protected]>2011-01-31 20:52:18 +0000
committerJosé Fonseca <[email protected]>2011-01-31 20:53:03 +0000
commit3ae7aa340305dbfa703abc9ec53ebad3ab6afa11 (patch)
tree17a14701d600f4229c417c67eb0addb9c539c29e
parent0f7325b89038937bd428f7c89ed9859189a0ab0b (diff)
glsl: Define va_copy on MSVC.
-rw-r--r--src/glsl/ralloc.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/glsl/ralloc.c b/src/glsl/ralloc.c
index e92f433e336..fa2dd8b01e6 100644
--- 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