This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Include wctype.h in wchar.h as an XSI extension


On Aug 11 16:37, Yaakov Selkowitz wrote:
> 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>
> ---
>  newlib/libc/include/wchar.h | 4 ++++
>  1 file changed, 4 insertions(+)
> 
> diff --git a/newlib/libc/include/wchar.h b/newlib/libc/include/wchar.h
> index d5fc26f..e5b840d 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
> -- 
> 2.8.3

Looks good, please apply.


Thanks,
Corinna

-- 
Corinna Vinschen
Cygwin Maintainer
Red Hat

Attachment: signature.asc
Description: PGP signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]