浏览代码

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
Viktor Szakats 6 月之前
父节点
当前提交
6608f34f56
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      lib/config-win32.h

+ 1 - 1
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