diff options
author | tjr <tjr@FreeBSD.org> | 2004-08-12 12:19:11 +0000 |
---|---|---|
committer | tjr <tjr@FreeBSD.org> | 2004-08-12 12:19:11 +0000 |
commit | 84b5d3520fd89553036a69a6c1e0481f0b65d8ea (patch) | |
tree | 802ec2593ce866aa0d0473bfc2cd7c04d0f9cd00 /include/wchar.h | |
parent | 0340faafa1e860a32729f20649b0e508d257006e (diff) | |
download | FreeBSD-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.h | 2 |
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 |