wolfssl/wolfcrypt/types.h: tweak for buildability in no-PK FIPS, re limits.h.

This commit is contained in:
Daniel Pouzzner
2025-01-20 14:14:41 -06:00
parent bd014e02e0
commit 0ec17dfed5

View File

@@ -212,10 +212,10 @@ decouple library dependencies with standard string, memory and so on.
/* try to set SIZEOF_LONG or SIZEOF_LONG_LONG if user didn't */
#if defined(_WIN32) || defined(HAVE_LIMITS_H)
#include <limits.h>
/* make sure both SIZEOF_LONG_LONG and SIZEOF_LONG are set,
* otherwise causes issues with CTC_SETTINGS */
#if !defined(SIZEOF_LONG_LONG) || !defined(SIZEOF_LONG)
#include <limits.h>
#if !defined(SIZEOF_LONG) && defined(ULONG_MAX) && \
(ULONG_MAX == 0xffffffffUL)
#define SIZEOF_LONG 4