From 0ec9f54d12ad91a3cf0766cf637f0c7896d315ca Mon Sep 17 00:00:00 2001 From: Mattia Moffa Date: Sat, 20 Jun 2026 04:35:03 +0200 Subject: [PATCH] Allow SP_MATH (not _ALL) if MAX3266X_MATH not enabled --- wolfcrypt/src/port/maxim/max3266x.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wolfcrypt/src/port/maxim/max3266x.c b/wolfcrypt/src/port/maxim/max3266x.c index 5ec504bc0b..d48e1efe9a 100644 --- a/wolfcrypt/src/port/maxim/max3266x.c +++ b/wolfcrypt/src/port/maxim/max3266x.c @@ -50,7 +50,8 @@ #error MXC Not Compatible with Fast Math or Heap Math #include #define MXC_WORD_SIZE DIGIT_BIT -#elif defined(WOLFSSL_SP_MATH_ALL) +#elif defined(WOLFSSL_SP_MATH_ALL) || \ + (defined(WOLFSSL_SP_MATH) && !defined(MAX3266X_MATH)) #include #define MXC_WORD_SIZE SP_WORD_SIZE #else