Add check for ULONG_MAX in SP math to detect if pre-processor correctly handles 64-bit types.

This commit is contained in:
David Garske
2022-04-01 09:23:37 -07:00
parent 4db45cea4e
commit e1965094ad

View File

@ -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;