From d2642584cbd6e37f81d09a046022b21e0f43cef9 Mon Sep 17 00:00:00 2001 From: Simon Butcher Date: Wed, 3 Oct 2018 15:11:19 +0100 Subject: [PATCH] Make inclusion of stdio.h conditional in x509_crt.c stdio.h was being included both conditionally if MBEDTLS_FS_IO was defined, and also unconditionally, which made at least one of them redundant. This change removes the unconditional inclusion of stdio.h and makes it conditional on MBEDTLS_PLATFORM_C. --- library/x509_crt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/x509_crt.c b/library/x509_crt.c index a390f81ca..e67c32bae 100644 --- a/library/x509_crt.c +++ b/library/x509_crt.c @@ -43,7 +43,6 @@ #include "mbedtls/oid.h" #include "mbedtls/platform_util.h" -#include #include #if defined(MBEDTLS_PEM_PARSE_C) @@ -53,6 +52,7 @@ #if defined(MBEDTLS_PLATFORM_C) #include "mbedtls/platform.h" #else +#include #include #define mbedtls_free free #define mbedtls_calloc calloc