bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bug in GNULIB wchar.h?


From: Paul Eggert
Subject: Re: Bug in GNULIB wchar.h?
Date: Sat, 29 Mar 2008 00:06:41 -0500
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux)

Does this patch fix your problem?

2008-03-29  Paul Eggert  <address@hidden>

        * lib/wchar.in.h [defined __need_mbstate_t]: Just include wchar.h
        in this case.  Problem reported by Erik Benada.

diff --git a/lib/wchar.in.h b/lib/wchar.in.h
index 924a338..d7a1b5d 100644
--- a/lib/wchar.in.h
+++ b/lib/wchar.in.h
@@ -26,6 +26,14 @@
  * the declaration of wcwidth().
  */
 
+#ifdef __need_mbstate_t
+/* Special invocation convention inside glibc header files.  */
+
address@hidden@ @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 @@ extern int wcwidth (int /* actually wchar_t */);
 
 #endif /* _GL_WCHAR_H */
 #endif /* _GL_WCHAR_H */
+#endif




reply via email to

[Prev in Thread] Current Thread [Next in Thread]