mirror of
https://github.com/michaelrsweet/mxml.git
synced 2024-11-24 11:25:30 +00:00
Windows needs ssize_t definition.
This commit is contained in:
parent
09f0dcfe42
commit
4c9b2d2260
8
mxml.h
8
mxml.h
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user