diff options
author | Andreas Schneider <asn@cryptomilk.org> | 2015-08-01 15:55:03 +0200 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2015-08-01 15:55:03 +0200 |
commit | 56f0bfec968af94c45d3f9bcf391dde27ca46419 (patch) | |
tree | df2c43332146c9fa75ce16be8b52ad5326b0edbc | |
parent | 8c4e920530a876513f755f3ff60813080e42f612 (diff) | |
download | cmocka-56f0bfec968af94c45d3f9bcf391dde27ca46419.tar.gz cmocka-56f0bfec968af94c45d3f9bcf391dde27ca46419.tar.bz2 cmocka-56f0bfec968af94c45d3f9bcf391dde27ca46419.zip |
include: Add va_copy macro if MSVC doesn't provide it
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
-rw-r--r-- | include/cmocka_private.h | 4 |
1 files changed, 4 insertions, 0 deletions
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 |