diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2016-07-25 12:47:36 +0300 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2016-08-15 11:56:58 +0300 |
commit | 7156bf842e37fc07009d012c35309c5700f9f7cd (patch) | |
tree | 1aacfc2f6bc4468bc19f8caa066764864a60b23e /newlib/libc/include/wctype.h | |
parent | 91ebe04042de36aba91cbf22711553a5591c4a5f (diff) |
Add sys/_locale.h header and fix up headers
Signed-off by: Corinna Vinschen <corinna@vinschen.de>
Diffstat (limited to 'newlib/libc/include/wctype.h')
-rw-r--r-- | newlib/libc/include/wctype.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/newlib/libc/include/wctype.h b/newlib/libc/include/wctype.h index 6c2505ddf..d08537411 100644 --- a/newlib/libc/include/wctype.h +++ b/newlib/libc/include/wctype.h @@ -7,6 +7,10 @@ #define __need_wint_t #include <stddef.h> +#if __POSIX_VISIBLE >= 200809 +#include <sys/_locale.h> +#endif + #ifndef WEOF # define WEOF ((wint_t)-1) #endif @@ -44,11 +48,6 @@ wint_t _EXFUN(towlower, (wint_t)); wctrans_t _EXFUN(wctrans, (const char *)); wctype_t _EXFUN(wctype, (const char *)); -#if __POSIX_VISIBLE >= 200809 || defined (_COMPILING_NEWLIB) -struct __locale_t; -typedef struct __locale_t *locale_t; -#endif - #if __POSIX_VISIBLE >= 200809 extern int iswalpha_l (wint_t, locale_t); extern int iswalnum_l (wint_t, locale_t); |