From f95c4d7b679f9f03a7f7dd93739f3e825c75899e Mon Sep 17 00:00:00 2001 From: David Garske Date: Fri, 1 Nov 2024 10:46:40 -0700 Subject: [PATCH] Fix for building sources (wildcard *.c). Add macro guard on new files. --- wolfcrypt/src/port/riscv/riscv-64-sha3.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/wolfcrypt/src/port/riscv/riscv-64-sha3.c b/wolfcrypt/src/port/riscv/riscv-64-sha3.c index 45722269fd..e6e73dd552 100644 --- a/wolfcrypt/src/port/riscv/riscv-64-sha3.c +++ b/wolfcrypt/src/port/riscv/riscv-64-sha3.c @@ -27,8 +27,9 @@ #include #include +#ifdef WOLFSSL_RISCV_ASM #if defined(WOLFSSL_SHA3) && !defined(WOLFSSL_XILINX_CRYPT) && \ - !defined(WOLFSSL_AFALG_XILINX_SHA3) + !defined(WOLFSSL_AFALG_XILINX_SHA3) #if FIPS_VERSION3_GE(2,0,0) /* set NO_WRAPPERS before headers, use direct internal f()s not wrappers */ @@ -857,7 +858,6 @@ void BlockSha3(word64* s) ); } -#endif - -#endif - +#endif /* WOLFSSL_RISCV_VECTOR */ +#endif /* WOLFSSL_SHA3 && !XILINX */ +#endif /* WOLFSSL_RISCV_ASM */