Mercurial > hg > octave-lojdl > gnulib-hg
changeset 12620:c2fcdc831f5b
wchar: Fix compilation error when <wchar.h> is used from coreutils.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Sun, 10 Jan 2010 12:54:38 +0100 |
parents | a6cdcb818fec |
children | 50397cca5c76 |
files | ChangeLog lib/wchar.in.h |
diffstat | 2 files changed, 10 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2010-01-10 Bruno Haible <bruno@clisp.org> + + wchar: Fix compilation error when <wchar.h> is used from coreutils. + * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t. + Reported by Brian Gough <bjg@gnu.org> and + Chris Clayton <chris2553@googlemail.com> via + Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>. + 2010-01-09 Bruno Haible <bruno@clisp.org> unistr/u16-to-u32: Reject invalid input.
--- a/lib/wchar.in.h +++ b/lib/wchar.in.h @@ -30,9 +30,9 @@ @PRAGMA_SYSTEM_HEADER@ #endif -#if defined __need_mbstate_t || (defined __hpux && ((defined _INTTYPES_INCLUDED && !defined strtoimax) || defined _GL_JUST_INCLUDE_SYSTEM_WCHAR_H)) || defined _GL_ALREADY_INCLUDING_WCHAR_H +#if defined __need_mbstate_t || defined __need_wint_t || (defined __hpux && ((defined _INTTYPES_INCLUDED && !defined strtoimax) || defined _GL_JUST_INCLUDE_SYSTEM_WCHAR_H)) || defined _GL_ALREADY_INCLUDING_WCHAR_H /* Special invocation convention: - - Inside uClibc header files. + - Inside glibc and uClibc header files. - On HP-UX 11.00 we have a sequence of nested includes <wchar.h> -> <stdlib.h> -> <stdint.h>, and the latter includes <wchar.h>, once indirectly <stdint.h> -> <sys/types.h> -> <inttypes.h> -> <wchar.h>