summaryrefslogtreecommitdiff
path: root/thirdparty/mbedtls/library/platform.c
diff options
context:
space:
mode:
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 76df7fac18..a295f9b9af 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 );