aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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.