summaryrefslogtreecommitdiff
path: root/utf8proc.c
diff options
context:
space:
mode:
Diffstat (limited to 'utf8proc.c')
-rw-r--r--utf8proc.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/utf8proc.c b/utf8proc.c
index 413d04d..f03126c 100644
--- a/utf8proc.c
+++ b/utf8proc.c
@@ -42,6 +42,14 @@
#include "utf8proc.h"
+
+#ifndef SSIZE_MAX
+#define SSIZE_MAX ((size_t)SIZE_MAX/2)
+#endif
+#ifndef UINT16_MAX
+# define UINT16_MAX 65535U
+#endif
+
#include "utf8proc_data.c"