forked from wolfSSL/wolfssl
wolfssl/wolfcrypt/types.h: tweak for buildability in no-PK FIPS, re limits.h.
This commit is contained in:
@@ -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 */
|
/* try to set SIZEOF_LONG or SIZEOF_LONG_LONG if user didn't */
|
||||||
#if defined(_WIN32) || defined(HAVE_LIMITS_H)
|
#if defined(_WIN32) || defined(HAVE_LIMITS_H)
|
||||||
|
#include <limits.h>
|
||||||
/* make sure both SIZEOF_LONG_LONG and SIZEOF_LONG are set,
|
/* make sure both SIZEOF_LONG_LONG and SIZEOF_LONG are set,
|
||||||
* otherwise causes issues with CTC_SETTINGS */
|
* otherwise causes issues with CTC_SETTINGS */
|
||||||
#if !defined(SIZEOF_LONG_LONG) || !defined(SIZEOF_LONG)
|
#if !defined(SIZEOF_LONG_LONG) || !defined(SIZEOF_LONG)
|
||||||
#include <limits.h>
|
|
||||||
#if !defined(SIZEOF_LONG) && defined(ULONG_MAX) && \
|
#if !defined(SIZEOF_LONG) && defined(ULONG_MAX) && \
|
||||||
(ULONG_MAX == 0xffffffffUL)
|
(ULONG_MAX == 0xffffffffUL)
|
||||||
#define SIZEOF_LONG 4
|
#define SIZEOF_LONG 4
|
||||||
|
Reference in New Issue
Block a user