summaryrefslogtreecommitdiffstats
path: root/compat.h
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2016-09-01 20:40:03 +0100
committerNicholas Marriott <nicholas.marriott@gmail.com>2016-09-01 20:40:03 +0100
commit6c94774b70f72952c4c512e4aa59a207ca1c34f2 (patch)
tree04502f9607958f3b4559e3bac5e5668e8d517ab0 /compat.h
parentae297cb487590d0bb8e42e21e28926a1f957ad0b (diff)
Add support for using utf8proc with --enable-utf8proc, useful for platforms
(like OS X) where the system implementation is crap. From Joshua Rubin.
Diffstat (limited to 'compat.h')
-rw-r--r--compat.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/compat.h b/compat.h
index 7f17e193..28ca9c61 100644
--- a/compat.h
+++ b/compat.h
@@ -279,7 +279,14 @@ int openat(int, const char *, int, ...);
#ifndef HAVE_REALLOCARRAY
/* reallocarray.c */
-void *reallocarray(void *, size_t, size_t size);
+void *reallocarray(void *, size_t, size_t);
+#endif
+
+#ifdef HAVE_UTF8PROC
+/* utf8proc.c */
+int utf8proc_wcwidth(wchar_t);
+int utf8proc_mbtowc(wchar_t *, const char *, size_t);
+int utf8proc_wctomb(char *, wchar_t);
#endif
#ifdef HAVE_GETOPT