Browse Source

Merge pull request #28700 from ShyRed/fixmonogluewindows

Fix generation of Mono Glue for Visual Studio 2017+
Ignacio Roldán Etcheverry 6 years ago
parent
commit
255ea11502
1 changed files with 1 additions and 1 deletions
  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