Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVicent Martí <tanoku@gmail.com>2012-05-05 00:52:38 +0400
committerVicent Martí <tanoku@gmail.com>2012-05-05 00:52:38 +0400
commit1adf8c6a9c2c0d8b4936bfc35b84357b13f5a2b2 (patch)
treefe0280651ac30a066c2af71e3622479107eb02a4 /src/cc-compat.h
parent76873c09053e210c7f739b1cda39cffd6ab865e0 (diff)
compat: va_copy on Win32 systems
Diffstat (limited to 'src/cc-compat.h')
-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__ */