From b504d440a0e9725be479438dab7ab96b64740df2 Mon Sep 17 00:00:00 2001 From: Thomas Bernard Date: Mon, 9 Apr 2018 15:06:28 +0200 Subject: [PATCH] fix for MS Visual Studio snprintf() --- src/io.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/io.c b/src/io.c index 27c1de00..58427be4 100644 --- a/src/io.c +++ b/src/io.c @@ -32,6 +32,11 @@ #include #ifndef _MSC_VER #include +#else +#include +#if _MSC_VER < 1900 +#define snprintf _snprintf +#endif #endif #if defined(__amigaos4__) || defined(__AROS__) || defined(__MORPHOS__) || defined(__amigaos__)