From 36b9e47eed1fdf4be05d516b1311af4bc0566169 Mon Sep 17 00:00:00 2001 From: Gilles Peskine Date: Fri, 17 Mar 2023 17:30:29 +0100 Subject: [PATCH] Fix preprocessor conditional This was intended as an if-else-if chain. Make it so. Signed-off-by: Gilles Peskine --- library/aesni.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/library/aesni.h b/library/aesni.h index 2493998c67..51b770f316 100644 --- a/library/aesni.h +++ b/library/aesni.h @@ -67,8 +67,7 @@ * likely remove the assembly implementation. */ #if defined(MBEDTLS_HAVE_X86_64) #define MBEDTLS_AESNI_HAVE_CODE 1 // via assembly -#endif -#if defined(MBEDTLS_AESNI_HAVE_INTRINSICS) +#elif defined(MBEDTLS_AESNI_HAVE_INTRINSICS) #define MBEDTLS_AESNI_HAVE_CODE 2 // via intrinsics #endif