SP int: Handle ULLONG_MAX not being defined

This commit is contained in:
Sean Parkinson
2021-03-26 09:03:39 +10:00
parent 0d995527aa
commit 08be489bf5

View File

@@ -113,6 +113,7 @@ extern "C" {
#error "Size of unsigned long not detected"
#endif
#ifdef ULLONG_MAX
#if ULLONG_MAX == 18446744073709551615ULL
#define SP_ULLONG_BITS 64
@@ -137,6 +138,9 @@ extern "C" {
#else
#error "Size of unsigned long long not detected"
#endif
#else
#define SP_ULLONG_BITS 0
#endif
#ifdef WOLFSSL_SP_DIV_32