浏览代码

Merge pull request #28700 from ShyRed/fixmonogluewindows

Fix generation of Mono Glue for Visual Studio 2017+
Ignacio Roldán Etcheverry 6 年之前
父节点
当前提交
255ea11502
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      modules/mono/utils/string_utils.cpp

+ 1 - 1
modules/mono/utils/string_utils.cpp

@@ -210,7 +210,7 @@ String str_format(const char *p_format, ...) {
 #endif
 #endif
 
-#if defined(MINGW_ENABLED) || defined(_MSC_VER)
+#if defined(MINGW_ENABLED) || defined(_MSC_VER) && _MSC_VER < 1900
 #define vsnprintf(m_buffer, m_count, m_format, m_argptr) vsnprintf_s(m_buffer, m_count, _TRUNCATE, m_format, m_argptr)
 #endif