From 569f419516650e8ef2b26963269ae7c5a86278ff Mon Sep 17 00:00:00 2001 From: Vlad Abadzhiev Date: Thu, 10 Apr 2025 10:08:41 +0300 Subject: [PATCH] Fixed compilation on windows when MBEDTLS_HAVE_TIME is disabled but MBEDTLS_FS_IO is enabled Signed-off-by: Vlad Abadzhiev --- library/x509_crt.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/library/x509_crt.c b/library/x509_crt.c index 5d26ebbbc1..4ba36617f2 100644 --- a/library/x509_crt.c +++ b/library/x509_crt.c @@ -65,6 +65,11 @@ #include #endif /* __MBED__ */ #include +#else +#ifndef WIN32_LEAN_AND_MEAN +#define WIN32_LEAN_AND_MEAN +#endif +#include #endif /* !_WIN32 || EFIX64 || EFI32 */ #endif