mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-29 18:27:29 +02:00
Add check for ULONG_MAX in SP math to detect if pre-processor correctly handles 64-bit types.
This commit is contained in:
@ -95,7 +95,9 @@ extern "C" {
|
||||
#error "Size of unsigned int not detected"
|
||||
#endif
|
||||
|
||||
#if ULONG_MAX == 18446744073709551615ULL
|
||||
#if ULONG_MAX == 18446744073709551615ULL && \
|
||||
4294967295UL != 18446744073709551615ULL /* verify pre-processor supports
|
||||
* 64-bit ULL types */
|
||||
#define SP_ULONG_BITS 64
|
||||
|
||||
typedef unsigned long sp_uint64;
|
||||
|
Reference in New Issue
Block a user