Move MinGW specific define out of a header file

This commit is contained in:
Krzysztof Stachowiak 2018-09-24 12:41:18 +02:00
parent 41734a1f2a
commit edb868dcf9
2 changed files with 4 additions and 4 deletions

View file

@ -64,10 +64,6 @@ 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>

View file

@ -30,6 +30,10 @@
#include "mbedtls/platform.h"
#include "mbedtls/platform_util.h"
#if defined(__MINGW32__) && !defined(__USE_MINGW_ANSI_STDIO)
#define __USE_MINGW_ANSI_STDIO 1
#endif
#if defined(MBEDTLS_PLATFORM_MEMORY)
#if !defined(MBEDTLS_PLATFORM_STD_CALLOC)
static void *platform_calloc_uninit( size_t n, size_t size )