aboutsummaryrefslogtreecommitdiff
path: root/thirdparty/mbedtls/library/platform.c
diff options
context:
space:
mode:
authorFabio Alessandrelli2018-03-28 17:26:33 +0200
committerFabio Alessandrelli2018-04-03 19:25:24 +0200
commitfebec687639533570236e491fce464cd03eac1ae (patch)
treee640f49a8e84776ee5d08ff1d49da45bca447b35 /thirdparty/mbedtls/library/platform.c
parent629783f3aaf9d6b489fe86c2057fb93f54fb5388 (diff)
downloadgodot-febec687639533570236e491fce464cd03eac1ae.tar.gz
godot-febec687639533570236e491fce464cd03eac1ae.tar.zst
godot-febec687639533570236e491fce464cd03eac1ae.zip
Diffstat (limited to 'thirdparty/mbedtls/library/platform.c')
-rw-r--r--thirdparty/mbedtls/library/platform.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/thirdparty/mbedtls/library/platform.c b/thirdparty/mbedtls/library/platform.c
index 76df7fac1..a295f9b9a 100644
--- a/thirdparty/mbedtls/library/platform.c
+++ b/thirdparty/mbedtls/library/platform.c
@@ -82,7 +82,7 @@ int mbedtls_platform_win32_snprintf( char *s, size_t n, const char *fmt, ... )
return( -1 );
va_start( argp, fmt );
-#if defined(_TRUNCATE)
+#if defined(_TRUNCATE) && !defined(__MINGW32__)
ret = _vsnprintf_s( s, n, _TRUNCATE, fmt, argp );
#else
ret = _vsnprintf( s, n, fmt, argp );