From 655b012b6c475d4f7d14dca2f3d3f196d5e0c9ab Mon Sep 17 00:00:00 2001 From: Steven Cooreman Date: Mon, 11 Jan 2021 14:34:51 +0100 Subject: [PATCH] Unconditionally include platform.h in CMAC As is the case for aes.c et al Signed-off-by: Steven Cooreman --- library/cmac.c | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/library/cmac.c b/library/cmac.c index 9501461ac..b8e7ca3c8 100644 --- a/library/cmac.c +++ b/library/cmac.c @@ -45,22 +45,10 @@ #include "mbedtls/cmac.h" #include "mbedtls/platform_util.h" #include "mbedtls/error.h" +#include "mbedtls/platform.h" #include - -#if defined(MBEDTLS_PLATFORM_C) -#include "mbedtls/platform.h" -#else -#include -#define mbedtls_calloc calloc -#define mbedtls_free free -#if defined(MBEDTLS_SELF_TEST) -#include -#define mbedtls_printf printf -#endif /* MBEDTLS_SELF_TEST */ -#endif /* MBEDTLS_PLATFORM_C */ - #if !defined(MBEDTLS_CMAC_ALT) || defined(MBEDTLS_SELF_TEST) /*