diff options
author | Yaakov Selkowitz <yselkowi@redhat.com> | 2016-08-12 00:33:43 +0300 |
---|---|---|
committer | Yaakov Selkowitz <yselkowi@redhat.com> | 2016-08-12 00:33:43 +0300 |
commit | 1e22b408b2f0ca866d6d6d41ada52d4263a7f1aa (patch) | |
tree | 02a0a1c71ec26cb012c3716990fab8fd73c0310f /newlib | |
parent | 05aca4d94d6281bc8dabfb006413e9aa2aa3f89a (diff) |
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>
Diffstat (limited to 'newlib')
-rw-r--r-- | newlib/libc/include/wchar.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/newlib/libc/include/wchar.h b/newlib/libc/include/wchar.h index d5fc26f07..e5b840dbe 100644 --- a/newlib/libc/include/wchar.h +++ b/newlib/libc/include/wchar.h @@ -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 |