From 71f9b4206738f520b8e6f31d216f9b9d979dadb9 Mon Sep 17 00:00:00 2001 From: "Tim J. Robbins" Date: Tue, 20 Aug 2002 22:44:40 +0000 Subject: [PATCH] Restrict visibility of wcwidth() and wcswidth(); they are XSI extensions. --- include/wchar.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/include/wchar.h b/include/wchar.h index 0992675e841e..36785ca09458 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)