diff --git a/lib/hx509/hx_locl.h b/lib/hx509/hx_locl.h index d653f7d98..b7e80cec9 100644 --- a/lib/hx509/hx_locl.h +++ b/lib/hx509/hx_locl.h @@ -71,6 +71,14 @@ #include +#ifndef SSIZE_MAX +#ifdef _WIN64 +#define SSIZE_MAX _I64_MAX +#else +#define SSIZE_MAX INT_MAX +#endif +#endif + #ifndef O_CLOEXEC #define O_CLOEXEC 0 #endif @@ -85,6 +93,7 @@ */ #define HC_DEPRECATED_CRYPTO + #ifndef HEIM_NO_CRYPTO_HDRS #include "crypto-headers.h" #endif