From: Peter Eisentraut Date: Fri, 18 Oct 2013 12:29:18 +0000 (-0400) Subject: Fix for lack of va_copy() on certain Windows versions X-Git-Tag: REL9_4_BETA1~1038 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c2316dcda1cd057d7d4a56e3a51e3f8f0527e906;p=thirdparty%2Fpostgresql.git Fix for lack of va_copy() on certain Windows versions Based-on-patch-by: David Rowley --- 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 . *