Skip to content

Commit

Permalink
Windows needs ssize_t definition.
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelrsweet committed Mar 6, 2024
1 parent 09f0dcf commit 4c9b2d2
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions mxml.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4c9b2d2

Please sign in to comment.