X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=Source%2Fbinio.h;h=71016ed9f044eedfa09b569dfa419c2ec212cae5;hb=1aef858f5ecb3dc8fd816e0155635371ed3632f2;hp=7ec08e555a99c66b23fdde39862a911549edcc9c;hpb=44146d06c780d3aaa283672fedb08b8870ebe1b9;p=lugaru.git 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