From 4c9b2d2260112c31d54481ef5ae8073617bae0c5 Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Wed, 6 Mar 2024 16:14:36 -0500 Subject: [PATCH] Windows needs ssize_t definition. --- mxml.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/mxml.h b/mxml.h index 30859dd..03704f5 100644 --- a/mxml.h +++ b/mxml.h @@ -17,6 +17,14 @@ # include # include # include +# include +# include +# if defined(_WIN32) && !defined(__CUPS_SSIZE_T_DEFINED) +# define __CUPS_SSIZE_T_DEFINED +// Windows does not provide the ssize_t type, so map it to int64_t... */ +typedef int64_t ssize_t; // @private@ +# define SSIZE_MAX INT64_MAX +# endif // _WIN32 && !__CUPS_SSIZE_T_DEFINED # ifdef __cplusplus extern "C" { # endif // __cplusplus