From: Ryan C. Gordon Date: Fri, 14 May 2010 15:52:02 +0000 (-0400) Subject: Fix use of va_copy() on MSVC. X-Git-Url: https://git.jsancho.org/?a=commitdiff_plain;h=3e3f1d5604d75374833f5f2bc796f5f1fd1e5305;p=lugaru.git Fix use of va_copy() on MSVC. --- diff --git a/Source/binio.h b/Source/binio.h index 7ec08e5..71016ed 100644 --- a/Source/binio.h +++ b/Source/binio.h @@ -109,6 +109,12 @@ extern "C" { extern void vsunpackf(const void *buffer, const char *format, va_list args); extern void vfunpackf(FILE *file, const char *format, va_list args); +#ifdef _MSC_VER + #ifndef va_copy + #define va_copy(dest,src) do { dest = src; } while (0) + #endif +#endif + #if defined(__cplusplus) } #endif