aboutsummaryrefslogtreecommitdiffstats
path: root/lib/widechar.h
diff options
context:
space:
mode:
authorKarel Zak <kzak@redhat.com>2006-12-07 00:25:46 +0100
committerKarel Zak <kzak@redhat.com>2006-12-07 00:25:46 +0100
commitc07ebfa1e02d208ab12430e6791ea147bcfaf9c0 (patch)
treed44a755098286f5d553c7aea1a73d98c2995d6ec /lib/widechar.h
parent66ee8158b69525e12060ef558cb5d77feadab1dc (diff)
downloadutil-linux-c07ebfa1e02d208ab12430e6791ea147bcfaf9c0.tar.gz
Imported from util-linux-2.11b tarball.v2.11b
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>