Content-Length: 268070 | pFad | http://github.com/postgrespro/postgres/commit/c2316dcda1cd057d7d4a56e3a51e3f8f0527e906

9B Fix for lack of va_copy() on certain Windows versions · postgrespro/postgres@c2316dc · GitHub
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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/c2316dcda1cd057d7d4a56e3a51e3f8f0527e906

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy