diff --git a/utils.c b/utils.c index 17f67587..9824110e 100644 --- a/utils.c +++ b/utils.c @@ -308,7 +308,10 @@ int string_length_for_printf(size_t s) #endif /* Also lack of vsnprintf before VS2015 */ -#if defined _WINDOWS && !defined __WINE__ && _MSC_VER < 1900 +#if defined _WINDOWS && \ + !defined __MINGW32__ && \ + !defined __WINE__ && \ + _MSC_VER < 1900 #define vsnprintf _vsnprintf #endif