Commit 1adf8c6a9c2c0d8b4936bfc35b84357b13f5a2b2

Vicent Martí 2012-05-04T13:52:38

compat: va_copy on Win32 systems

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
diff --git a/src/cc-compat.h b/src/cc-compat.h
index 507985d..9f23dca 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__ */