From c2316dcda1cd057d7d4a56e3a51e3f8f0527e906 Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Fri, 18 Oct 2013 08:29:18 -0400 Subject: [PATCH] Fix for lack of va_copy() on certain Windows versions Based-on-patch-by: David Rowley --- src/include/port/win32.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/include/port/win32.h b/src/include/port/win32.h index 2c2d93765ee..70175d14a57 100644 --- a/src/include/port/win32.h +++ b/src/include/port/win32.h @@ -237,6 +237,15 @@ int setitimer(int which, const struct itimerval * value, struct itimerval * ov #endif #endif +/* + * Supplement to + */ + +/* Visual Studios 2012 and earlier don't have va_copy() */ +#if defined(_MSC_VER) && _MSC_VER <= 1700 +#define va_copy(dest, src) ((dest) = (src)) +#endif + /* * Supplement to . *