forked from wolfSSL/wolfssl
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"
|
#error "Size of unsigned int not detected"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if ULONG_MAX == 18446744073709551615ULL
|
#if ULONG_MAX == 18446744073709551615ULL && \
|
||||||
|
4294967295UL != 18446744073709551615ULL /* verify pre-processor supports
|
||||||
|
* 64-bit ULL types */
|
||||||
#define SP_ULONG_BITS 64
|
#define SP_ULONG_BITS 64
|
||||||
|
|
||||||
typedef unsigned long sp_uint64;
|
typedef unsigned long sp_uint64;
|
||||||
|
Reference in New Issue
Block a user