# HG changeset patch # User Mike Becker # Date 1734975145 -3600 # Node ID 2e86cf7791353f3384c83de102c8ec34e34b7538 # Parent e997862a57d88bb245bd595599d396cad21708f0 fix missing definition of SSIZE_MAX in windows diff -r e997862a57d8 -r 2e86cf779135 src/cx/common.h --- a/src/cx/common.h Mon Dec 23 00:34:05 2024 +0100 +++ b/src/cx/common.h Mon Dec 23 18:32:25 2024 +0100 @@ -365,6 +365,13 @@ // fix missing ssize_t definition #include typedef SSIZE_T ssize_t; +#ifndef SSIZE_MAX +#ifdef _WIN64 +#define SSIZE_MAX 0x7fffffffffffffffi64 +#else +#define SSIZE_MAX 0x7fffffffi32 +#endif +#endif // fix missing _Thread_local support #define _Thread_local __declspec(thread)