summaryrefslogtreecommitdiff
path: root/modules/mono/utils
diff options
context:
space:
mode:
authorShyRed <ShyRed@users.noreply.github.com>2019-05-05 12:39:02 +0200
committerShyRed <ShyRed@users.noreply.github.com>2019-05-05 12:39:02 +0200
commit77ab9ba252b608af04b5ce89685a9af250792f32 (patch)
tree4c26975bd1dae1c3bac1e3267f4d89d004d4214a /modules/mono/utils
parentd8617f237acbed21ca4b1a9e7df2d28b32e511b1 (diff)
Fix generation of Mono Glue for Visual Studio 2017+
vsnprintf definition should only be changed when MSC version is older than 2013. The version check and fix is taken from StringUtils.h of assimp.
Diffstat (limited to 'modules/mono/utils')
-rw-r--r--modules/mono/utils/string_utils.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/mono/utils/string_utils.cpp b/modules/mono/utils/string_utils.cpp
index 0a7470f866..877122985d 100644
--- a/modules/mono/utils/string_utils.cpp
+++ b/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