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

Lines changed: 9 additions & 0 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy