aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPeter Eisentraut <peter_e@gmx.net>2013-10-18 08:29:18 -0400
committerPeter Eisentraut <peter_e@gmx.net>2013-10-18 09:54:50 -0400
commitc2316dcda1cd057d7d4a56e3a51e3f8f0527e906 (patch)
tree7cebc1d08943d4470c93764629ef1384f90adb95 /src
parent595a6a035008cfa76faa2f284e91704f18673d13 (diff)
downloadpostgresql-c2316dcda1cd057d7d4a56e3a51e3f8f0527e906.tar.gz
postgresql-c2316dcda1cd057d7d4a56e3a51e3f8f0527e906.zip
Fix for lack of va_copy() on certain Windows versions
Based-on-patch-by: David Rowley <dgrowleyml@gmail.com>
Diffstat (limited to 'src')
-rw-r--r--src/include/port/win32.h9
1 files changed, 9 insertions, 0 deletions
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
@@ -238,6 +238,15 @@ int setitimer(int which, const struct itimerval * value, struct itimerval * ov
#endif
/*
+ * Supplement to <stdarg.h>
+ */
+
+/* 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 <sys/types.h>.
*
* Perl already has typedefs for uid_t and gid_t.