From aab1e87439081fabbdf1a83bc85231cb16251219 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Mon, 1 Jan 2018 14:35:47 +0100 Subject: [PATCH] Update compat_snprintf.c --- libretro-common/compat/compat_snprintf.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libretro-common/compat/compat_snprintf.c b/libretro-common/compat/compat_snprintf.c index 1ab402b7c2..4508649cbc 100644 --- a/libretro-common/compat/compat_snprintf.c +++ b/libretro-common/compat/compat_snprintf.c @@ -28,6 +28,10 @@ #include #include +#if defined(_MSC_VER) && _MSC_VER < 1800 +#define va_copy(dst, src) ((dst) = (src)) +#endif + /* http://stackoverflow.com/questions/2915672/snprintf-and-visual-studio-2010 */ int c99_vsnprintf_retro__(char *outBuf, size_t size, const char *format, va_list ap)