Merge pull request #6282 from dgarske/fix_heapmath

Fix for including integer.h when heap math is not used
This commit is contained in:
Eric Blankenhorn
2023-04-14 14:28:38 -05:00
committed by GitHub

View File

@ -34,9 +34,13 @@
* designs. * designs.
*/ */
#include <wolfssl/wolfcrypt/wolfmath.h> #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 <wolfssl/wolfcrypt/wolfmath.h>
#else
#include <wolfssl/wolfcrypt/random.h> #include <wolfssl/wolfcrypt/random.h>