summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2013-05-23 13:26:11 -0400
committerAdam <Adam@anope.org>2013-05-23 13:26:11 -0400
commitf2dcf19923c4b60b268899c93b8deb3e6f30c6fe (patch)
treeb52afde11b163b4579c45f830367974883105eb0
parentda69771af628c6d16b5840f3d642ef70fcbe2170 (diff)
Add a va_copy define for Windows
-rw-r--r--win/inspircd_win32wrapper.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/win/inspircd_win32wrapper.h b/win/inspircd_win32wrapper.h
index a1463b318..38754d5df 100644
--- a/win/inspircd_win32wrapper.h
+++ b/win/inspircd_win32wrapper.h
@@ -90,6 +90,10 @@ CoreExport const char * insp_inet_ntop(int af, const void * src, char * dst, soc
#define snprintf _snprintf
#define vsnprintf _vsnprintf
+#ifndef va_copy
+#define va_copy(dest, src) (dest = src)
+#endif
+
/* Unix-style sleep (argument is in seconds) */
__inline void sleep(int seconds) { Sleep(seconds * 1000); }