From a6fda16a41d92ec3a591f281cfe0a2f7126c7b26 Mon Sep 17 00:00:00 2001 From: Dave Rodgman Date: Fri, 24 Feb 2023 19:00:38 +0000 Subject: [PATCH] Fix re-definition of __STDC_WANT_LIB_EXT1__ Signed-off-by: Dave Rodgman --- library/platform_util.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/library/platform_util.c b/library/platform_util.c index 25f5c575f..d0abc179f 100644 --- a/library/platform_util.c +++ b/library/platform_util.c @@ -35,7 +35,7 @@ #include #ifndef __STDC_WANT_LIB_EXT1__ -#define __STDC_WANT_LIB_EXT1__ 1 +#define __STDC_WANT_LIB_EXT1__ 1 /* Ask for the C11 gmtime_s() and memset_s() if available */ #endif #include @@ -107,7 +107,6 @@ void mbedtls_platform_zeroize(void *buf, size_t len) #endif /* MBEDTLS_PLATFORM_ZEROIZE_ALT */ #if defined(MBEDTLS_HAVE_TIME_DATE) && !defined(MBEDTLS_PLATFORM_GMTIME_R_ALT) -#define __STDC_WANT_LIB_EXT1__ 1 /* Ask for the C11 gmtime_s() if it's available */ #include #if !defined(_WIN32) && (defined(unix) || \ defined(__unix) || defined(__unix__) || (defined(__APPLE__) && \