summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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