summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVicent Martí <tanoku@gmail.com>2012-05-04 13:52:38 -0700
committerVicent Martí <tanoku@gmail.com>2012-05-04 13:52:38 -0700
commit1adf8c6a9c2c0d8b4936bfc35b84357b13f5a2b2 (patch)
treefe0280651ac30a066c2af71e3622479107eb02a4
parent76873c09053e210c7f739b1cda39cffd6ab865e0 (diff)
downloadlibgit2-1adf8c6a9c2c0d8b4936bfc35b84357b13f5a2b2.tar.gz
compat: va_copy on Win32 systems
-rw-r--r--src/cc-compat.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/cc-compat.h b/src/cc-compat.h
index 507985daa..9f23dcae2 100644
--- a/src/cc-compat.h
+++ b/src/cc-compat.h
@@ -58,4 +58,12 @@
# include <stdbool.h>
#endif
+#ifndef va_copy
+# ifdef __va_copy
+# define va_copy(dst, src) __va_copy(dst, src)
+# else
+# define va_copy(dst, src) ((dst) = (src))
+# endif
+#endif
+
#endif /* INCLUDE_compat_h__ */