From: José Fonseca Date: Mon, 31 Jan 2011 20:52:18 +0000 (+0000) Subject: glsl: Define va_copy on MSVC. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3ae7aa340305dbfa703abc9ec53ebad3ab6afa11;p=mesa.git glsl: Define va_copy on MSVC. --- 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