wchar: Fix compilation error when <wchar.h> is used from coreutils.
authorBruno Haible <bruno@clisp.org>
Sun, 10 Jan 2010 11:54:38 +0000 (12:54 +0100)
committerBruno Haible <bruno@clisp.org>
Sun, 10 Jan 2010 11:54:38 +0000 (12:54 +0100)
ChangeLog
lib/wchar.in.h

index 9d6e38d61b9124bf0507d71573e330f0ac4d6817..bc9107f37ea419a3c4f4335754e4f52a7330e4a6 100644 (file)
--- 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.
index c0323fec94066ef0fb996573b6bb637e158d1166..2e19666c07122c7719506f6e5aa0c45a56856f29 100644 (file)
@@ -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>