Allow for warning-free build of common with MS VC on warning level 3.

This commit is contained in:
Oliver Schmidt
2013-04-07 22:19:23 +02:00
parent 365668785c
commit ffb8595440
4 changed files with 12 additions and 6 deletions

View File

@@ -57,6 +57,11 @@
#define va_copy(dest,src) __va_copy(dest, src)
#endif
/* MS VC allows for assignment */
#if defined(_MSC_VER)
#define va_copy(dest,src) ((dest) = (src))
#endif
/* If va_copy is not defined now, we have a problem */
#if !defined(va_copy)
#error "Need a working va_copy!"