Windows needs ssize_t definition.

This commit is contained in:
Michael R Sweet 2024-03-06 16:14:36 -05:00
parent 09f0dcfe42
commit 4c9b2d2260
No known key found for this signature in database
GPG Key ID: BE67C75EC81F3244

8
mxml.h
View File

@ -17,6 +17,14 @@
# include <string.h>
# include <ctype.h>
# include <errno.h>
# include <sys/types.h>
# include <limits.h>
# 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