projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
595a6a0
)
Fix for lack of va_copy() on certain Windows versions
author
Peter Eisentraut
Fri, 18 Oct 2013 12:29:18 +0000
(08:29 -0400)
committer
Peter Eisentraut
Fri, 18 Oct 2013 13:54:50 +0000
(09:54 -0400)
Based-on-patch-by: David Rowley
src/include/port/win32.h
patch
|
blob
|
blame
|
history
diff --git
a/src/include/port/win32.h
b/src/include/port/win32.h
index 2c2d93765ee3bffdc7d5e3527be29e1c4a882fd1..70175d14a57ab8a0bd994cc41eb3e9d8150627e2 100644
(file)
--- 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
.
*