From b74eead27b4729881e02bf4c1ab6750173dde0ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Reimar=20D=C3=B6ffinger?= Date: Mon, 30 Dec 2013 12:14:06 +0100 Subject: [PATCH] compat: provide va_copy for old gcc versions. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Since we have this compat/va_copy.h header already we might just as well make use of it for more than one compiler. Signed-off-by: Reimar Döffinger --- compat/va_copy.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/compat/va_copy.h b/compat/va_copy.h index f894771949..3cb5ebee33 100644 --- a/compat/va_copy.h +++ b/compat/va_copy.h @@ -24,3 +24,6 @@ #if !defined(va_copy) && defined(_MSC_VER) #define va_copy(dst, src) ((dst) = (src)) #endif +#if !defined(va_copy) && defined(__GNUC__) && __GNUC__ < 3 +#define va_copy(dst, src) __va_copy(dst, src) +#endif