From deae28b9a3e0e1d5d76431da102c3bb30f7f6929 Mon Sep 17 00:00:00 2001 From: David Garske Date: Mon, 10 Apr 2023 14:44:08 -0700 Subject: [PATCH] Fix for building with heap math and including integer.h only. Fixes https://github.com/wolfSSL/wolfssl/issues/6280 ``` ./configure --enable-heapmath CFLAGS="-DWOLFSSL_PUBLIC_MP" && make && sudo make install cd ../wolfssl-examples/ecc make clean && make ``` --- wolfssl/wolfcrypt/integer.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/wolfssl/wolfcrypt/integer.h b/wolfssl/wolfcrypt/integer.h index 8a51b0772..3ec64ae66 100644 --- a/wolfssl/wolfcrypt/integer.h +++ b/wolfssl/wolfcrypt/integer.h @@ -34,9 +34,13 @@ * designs. */ -#include +#ifndef USE_INTEGER_HEAP_MATH -#ifdef USE_INTEGER_HEAP_MATH + /* Some platforms (like FIPS) may only include integer.h for math. */ + /* Handle variations of fast math, integer and sp math */ + #include + +#else #include