Fix for lack of va_copy() on certain Windows versions
authorPeter Eisentraut
Fri, 18 Oct 2013 12:29:18 +0000 (08:29 -0400)
committerPeter Eisentraut
Fri, 18 Oct 2013 13:54:50 +0000 (09:54 -0400)
Based-on-patch-by: David Rowley
src/include/port/win32.h

index 2c2d93765ee3bffdc7d5e3527be29e1c4a882fd1..70175d14a57ab8a0bd994cc41eb3e9d8150627e2 100644 (file)
@@ -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 .
  *