summaryrefslogtreecommitdiff
path: root/utf8proc.c
diff options
context:
space:
mode:
authorSteven G. Johnson <stevenj@mit.edu>2018-07-24 13:32:15 -0400
committerSteven G. Johnson <stevenj@mit.edu>2018-07-24 13:32:42 -0400
commit6a659a5843ed60efe1ab61af4bd1bde8f4889959 (patch)
tree0c2a5126882e6d40d9d4fc84079d558a7fa971f1 /utf8proc.c
parente0295be467d15e7abec2af275bcca30dc816bc9e (diff)
downloadlibutf8proc-6a659a5843ed60efe1ab61af4bd1bde8f4889959.tar.gz
libutf8proc-6a659a5843ed60efe1ab61af4bd1bde8f4889959.tar.bz2
doc fixes, don't export stdint and limits.h values UINT16_MAX and SSIZE_MAX
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"