summaryrefslogtreecommitdiffstats
path: root/include/wchar.h
diff options
context:
space:
mode:
authortjr <tjr@FreeBSD.org>2004-08-12 12:19:11 +0000
committertjr <tjr@FreeBSD.org>2004-08-12 12:19:11 +0000
commit84b5d3520fd89553036a69a6c1e0481f0b65d8ea (patch)
tree802ec2593ce866aa0d0473bfc2cd7c04d0f9cd00 /include/wchar.h
parent0340faafa1e860a32729f20649b0e508d257006e (diff)
downloadFreeBSD-src-84b5d3520fd89553036a69a6c1e0481f0b65d8ea.zip
FreeBSD-src-84b5d3520fd89553036a69a6c1e0481f0b65d8ea.tar.gz
Implement wcwidth() as an inline function.
Diffstat (limited to 'include/wchar.h')
-rw-r--r--include/wchar.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/wchar.h b/include/wchar.h
index c4be1e5..931a408 100644
--- a/include/wchar.h
+++ b/include/wchar.h
@@ -71,6 +71,7 @@
#include <sys/_null.h>
#include <sys/_types.h>
#include <machine/_limits.h>
+#include <_ctype.h>
#ifndef _MBSTATE_T_DECLARED
typedef __mbstate_t mbstate_t;
@@ -206,6 +207,7 @@ unsigned long long
#if __XSI_VISIBLE
int wcswidth(const wchar_t *, size_t);
int wcwidth(wchar_t);
+#define wcwidth(_c) __wcwidth(_c)
#endif
#if __BSD_VISIBLE
OpenPOWER on IntegriCloud