mirror of
https://github.com/transmission/transmission
synced 2024-12-23 00:04:06 +00:00
12 lines
389 B
Diff
12 lines
389 B
Diff
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);
|