Force ANSI stdio in MinGW

This commit is contained in:
Krzysztof Stachowiak 2018-08-29 15:33:59 +02:00
parent 723f8674c4
commit 643bcb36f6

View File

@ -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 <stdio.h>
#include <stdlib.h>