include: Add va_copy macro if MSVC doesn't provide it
authorAndreas Schneider <asn@cryptomilk.org>
Sat, 1 Aug 2015 13:55:03 +0000 (15:55 +0200)
committerAndreas Schneider <asn@cryptomilk.org>
Sat, 1 Aug 2015 13:55:03 +0000 (15:55 +0200)
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
include/cmocka_private.h

index 454baf1..c67f8db 100644 (file)
 #  undef inline
 #  define inline __inline
 
+#  ifndef va_copy
+#   define va_copy(dest, src) (dest = src)
+#  endif
+
 #  define strcasecmp _stricmp
 #  define strncasecmp _strnicmp