Include MinGW in the non-conforming (v)snprintf scope
It turns out that in some environments MinGW esposes a non-conforming
(v)snprintf behavior despite the tests against the MSVC runtime pass.
Therefore it has been included in the "non-conforming" scope alongide
older MSVC rungime environments.
diff --git a/include/mbedtls/platform.h b/include/mbedtls/platform.h
index ada898e..afd6367 100644
--- a/include/mbedtls/platform.h
+++ b/include/mbedtls/platform.h
@@ -59,7 +59,7 @@
* implementations of some standard library functions, including snprintf
* and vsnprintf. This affects MSVC and MinGW builds.
*/
-#if defined(_MSC_VER) && _MSC_VER <= 1900
+#if defined(__MINGW32__) || (defined(_MSC_VER) && _MSC_VER <= 1900)
#define MBEDTLS_PLATFORM_HAS_NON_CONFORMING_SNPRINTF
#define MBEDTLS_PLATFORM_HAS_NON_CONFORMING_VSNPRINTF
#endif