Skip to content

Commit c2316dc

Browse files
committed
Fix for lack of va_copy() on certain Windows versions
Based-on-patch-by: David Rowley <dgrowleyml@gmail.com>
1 parent 595a6a0 commit c2316dc

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/include/port/win32.h

+9
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,15 @@ int setitimer(int which, const struct itimerval * value, struct itimerval * ov
237237
#endif
238238
#endif
239239

240+
/*
241+
* Supplement to <stdarg.h>
242+
*/
243+
244+
/* Visual Studios 2012 and earlier don't have va_copy() */
245+
#if defined(_MSC_VER) && _MSC_VER <= 1700
246+
#define va_copy(dest, src) ((dest) = (src))
247+
#endif
248+
240249
/*
241250
* Supplement to <sys/types.h>.
242251
*

0 commit comments

Comments
 (0)