changeset 9842:5a6c62d69d18

* lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>. Problem reported by Erik Benada in <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
author Paul Eggert <eggert@cs.ucla.edu>
date Mon, 31 Mar 2008 00:50:54 -0500
parents a95dd6984607
children 5b73ae24c209
files ChangeLog lib/wchar.in.h
diffstat 2 files changed, 15 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Mon Mar 31 01:59:11 2008 +0200
+++ b/ChangeLog	Mon Mar 31 00:50:54 2008 -0500
@@ -1,3 +1,9 @@
+2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
+
+	* lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
+	Problem reported by Erik Benada in
+	<http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
+
 2008-03-30  Bruno Haible  <bruno@clisp.org>
 
 	* tests/test-strtod.c: Add comments about which assertion fails on which
--- a/lib/wchar.in.h	Mon Mar 31 01:59:11 2008 +0200
+++ b/lib/wchar.in.h	Mon Mar 31 00:50:54 2008 -0500
@@ -26,6 +26,14 @@
  * the declaration of wcwidth().
  */
 
+#ifdef __need_mbstate_t
+/* Special invocation convention inside glibc header files.  */
+
+#@INCLUDE_NEXT@ @NEXT_WCHAR_H@
+
+#else
+/* Normal invocation convention.  */
+
 #ifndef _GL_WCHAR_H
 
 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
@@ -80,3 +88,4 @@
 
 #endif /* _GL_WCHAR_H */
 #endif /* _GL_WCHAR_H */
+#endif