--- libevent-2.1.8-stable/evutil.c.orig	2017-09-25 23:12:58.960674400 +0200
+++ libevent-2.1.8-stable/evutil.c	2017-09-25 23:13:49.827963900 +0200
@@ -1838,7 +1838,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);
