Fix for lack of va_copy() on certain Windows versions

Based-on-patch-by: David Rowley <dgrowleyml@gmail.com>
This commit is contained in:
Peter Eisentraut 2013-10-18 08:29:18 -04:00
parent 595a6a0350
commit c2316dcda1

View File

@ -237,6 +237,15 @@ int setitimer(int which, const struct itimerval * value, struct itimerval * ov
#endif
#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>.
*