From 56f0bfec968af94c45d3f9bcf391dde27ca46419 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Sat, 1 Aug 2015 15:55:03 +0200 Subject: include: Add va_copy macro if MSVC doesn't provide it Signed-off-by: Andreas Schneider --- include/cmocka_private.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/cmocka_private.h b/include/cmocka_private.h index 454baf1..c67f8db 100644 --- a/include/cmocka_private.h +++ b/include/cmocka_private.h @@ -30,6 +30,10 @@ # undef inline # define inline __inline +# ifndef va_copy +# define va_copy(dest, src) (dest = src) +# endif + # define strcasecmp _stricmp # define strncasecmp _strnicmp -- cgit v1.2.3