From ce003b231f6c934025092afa7e5623f5fc36e1e6 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Mon, 31 Mar 2008 00:50:54 -0500 Subject: [PATCH] * lib/wchar.in.h [defined __need_mbstate_t]: Just include . Problem reported by Erik Benada in . --- ChangeLog | 6 ++++++ lib/wchar.in.h | 9 +++++++++ 2 files changed, 15 insertions(+) diff --git a/ChangeLog b/ChangeLog index b7fdd2012..49ada5780 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2008-03-30 Paul Eggert + + * lib/wchar.in.h [defined __need_mbstate_t]: Just include . + Problem reported by Erik Benada in + . + 2008-03-30 Bruno Haible * tests/test-strtod.c: Add comments about which assertion fails on which diff --git a/lib/wchar.in.h b/lib/wchar.in.h index 924a3382d..d7a1b5d24 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. */ + +#@INCLUDE_NEXT@ @NEXT_WCHAR_H@ + +#else +/* Normal invocation convention. */ + #ifndef _GL_WCHAR_H /* Tru64 with Desktop Toolkit C has a bug: must be included before @@ -80,3 +88,4 @@ extern int wcwidth (int /* actually wchar_t */); #endif /* _GL_WCHAR_H */ #endif /* _GL_WCHAR_H */ +#endif -- 2.11.0