From: Viktor Szakats Date: Wed, 15 Nov 2023 02:54:43 +0000 (+0000) Subject: config-win32: set `HAVE_SNPRINTF` for mingw-w64 X-Git-Tag: curl-8_5_0~95 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6608f34f56c642de79ecc9e98614df99298cc28d;p=thirdparty%2Fcurl.git config-win32: set `HAVE_SNPRINTF` for mingw-w64 It's available in all mingw-w64 releases. We already pre-fill this detection in CMake. Closes #12325 --- diff --git a/lib/config-win32.h b/lib/config-win32.h index abad34de8c..7b8a289bcd 100644 --- a/lib/config-win32.h +++ b/lib/config-win32.h @@ -226,7 +226,7 @@ #define SEND_TYPE_RETV int /* Define to 1 if you have the snprintf function. */ -#if defined(_MSC_VER) && (_MSC_VER >= 1900) +#if (defined(_MSC_VER) && (_MSC_VER >= 1900)) || defined(__MINGW32__) #define HAVE_SNPRINTF 1 #endif