aboutsummaryrefslogtreecommitdiffstats
path: root/lib/widechar.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/widechar.h')
-rw-r--r--lib/widechar.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/widechar.h b/lib/widechar.h
index c440006f79..1aa91f3f43 100644
--- a/lib/widechar.h
+++ b/lib/widechar.h
@@ -12,6 +12,14 @@
# include <libutf8.h>
#endif
+#if 1
+/* explicit prototypes, since sometimes <wchar.h> does not give them */
+extern int wcwidth (wint_t c);
+extern int wcswidth (const wchar_t *s, size_t n);
+extern size_t wcslen (const wchar_t *s);
+extern wchar_t *wcsdup (const wchar_t *s);
+#endif
+
#else
# include <ctype.h>