Include wctype.h in wchar.h as an XSI extension

However, note that this inclusion is obsolescent in SUSv4 and therefore
may be removed in the next revision.

http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/wchar.h.html

Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
This commit is contained in:
Yaakov Selkowitz 2016-08-11 16:33:43 -05:00
parent 05aca4d94d
commit 1e22b408b2
1 changed files with 4 additions and 0 deletions

View File

@ -20,6 +20,10 @@
/* For __STDC_ISO_10646__ */
#include <sys/features.h>
#if __XSI_VISIBLE /* && __XSI_VISIBLE < 800 */
#include <wctype.h>
#endif
#ifndef WEOF
# define WEOF ((wint_t)-1)
#endif