transmission/third-party/event2-02-win32.patch

13 lines
389 B
Diff
Raw Normal View History

diff --git a/evutil.c b/evutil.c
--- a/evutil.c
+++ b/evutil.c
@@ -1562,7 +1562,7 @@
int r;
if (!buflen)
return 0;
-#if defined(_MSC_VER) || defined(WIN32)
+#if (defined(_MSC_VER) && _MSC_VER < 1900) || (defined(WIN32) && (!defined(__USE_MINGW_ANSI_STDIO) || (__USE_MINGW_ANSI_STDIO + 0) == 0))
r = _vsnprintf(buf, buflen, format, ap);
if (r < 0)
r = _vscprintf(format, ap);