From 643bcb36f6d07856f4902ac336a2566b7589b1b7 Mon Sep 17 00:00:00 2001 From: Krzysztof Stachowiak Date: Wed, 29 Aug 2018 15:33:59 +0200 Subject: [PATCH] Force ANSI stdio in MinGW --- include/mbedtls/platform.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/mbedtls/platform.h b/include/mbedtls/platform.h index 24c63625f..a121654e2 100644 --- a/include/mbedtls/platform.h +++ b/include/mbedtls/platform.h @@ -64,6 +64,10 @@ extern "C" { #define MBEDTLS_PLATFORM_HAS_NON_CONFORMING_VSNPRINTF #endif +#if defined(__MINGW32__) && !defined(__USE_MINGW_ANSI_STDIO) +#define __USE_MINGW_ANSI_STDIO 1 +#endif + #if !defined(MBEDTLS_PLATFORM_NO_STD_FUNCTIONS) #include #include