summaryrefslogtreecommitdiffstats
path: root/include/wchar.h
diff options
context:
space:
mode:
authortjr <tjr@FreeBSD.org>2002-08-20 22:44:40 +0000
committertjr <tjr@FreeBSD.org>2002-08-20 22:44:40 +0000
commita79225f8d012279922811f7bbd81e29b24fd07a4 (patch)
tree5cec9093a0b20a2dd500d277213a7bee31eee2aa /include/wchar.h
parent8621b323d96bc2326f3aa818e43b8ebd9fc64146 (diff)
downloadFreeBSD-src-a79225f8d012279922811f7bbd81e29b24fd07a4.zip
FreeBSD-src-a79225f8d012279922811f7bbd81e29b24fd07a4.tar.gz
Restrict visibility of wcwidth() and wcswidth(); they are XSI extensions.
Diffstat (limited to 'include/wchar.h')
-rw-r--r--include/wchar.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/include/wchar.h b/include/wchar.h
index 0992675..36785ca 100644
--- a/include/wchar.h
+++ b/include/wchar.h
@@ -145,14 +145,17 @@ size_t wcsrtombs(char * __restrict, const wchar_t ** __restrict, size_t,
mbstate_t * __restrict);
size_t wcsspn(const wchar_t *, const wchar_t *);
wchar_t *wcsstr(const wchar_t *, const wchar_t *);
-int wcswidth(const wchar_t *, size_t);
int wctob(wint_t);
-int wcwidth(wchar_t);
wchar_t *wmemchr(const wchar_t *, wchar_t, size_t);
int wmemcmp(const wchar_t *, const wchar_t *, size_t);
wchar_t *wmemcpy(wchar_t * __restrict, const wchar_t * __restrict, size_t);
wchar_t *wmemmove(wchar_t *, const wchar_t *, size_t);
wchar_t *wmemset(wchar_t *, wchar_t, size_t);
+
+#if __XSI_VISIBLE
+int wcswidth(const wchar_t *, size_t);
+int wcwidth(wchar_t);
+#endif
__END_DECLS
#define getwc(fp) fgetwc(fp)
OpenPOWER on IntegriCloud