re PR libstdc++/7097 (_GLIBCPP_HAVE_MBSTATE_T breaks non-GLIB systems)

2002-07-03  Benjamin Kosnik  <bkoz@redhat.com>

	PR libstdc++/7097
	* include/c/std_cwchar.h: Fix.

From-SVN: r55216
This commit is contained in:
Benjamin Kosnik 2002-07-03 17:14:21 +00:00 committed by Benjamin Kosnik
parent c7375e612b
commit fcad420e8f
2 changed files with 12 additions and 9 deletions

View File

@ -1,3 +1,8 @@
2002-07-03 Benjamin Kosnik <bkoz@redhat.com>
PR libstdc++/7097
* include/c/std_cwchar.h: Fix.
2002-07-02 Benjamin Kosnik <bkoz@redhat.com> 2002-07-02 Benjamin Kosnik <bkoz@redhat.com>
PR libstdc++/6410 PR libstdc++/6410

View File

@ -47,18 +47,16 @@
// Need to do a bit of trickery here with mbstate_t as char_traits // Need to do a bit of trickery here with mbstate_t as char_traits
// assumes it is in wchar.h, regardless of wchar_t specializations. // assumes it is in wchar.h, regardless of wchar_t specializations.
#ifndef _GLIBCPP_HAVE_MBSTATE_T #ifndef _GLIBCPP_HAVE_MBSTATE_T
extern "C" namespace std
{ {
typedef struct extern "C"
{ {
int __fill[6]; typedef struct
} mbstate_t; {
int __fill[6];
} mbstate_t;
}
} }
#endif #endif
namespace std
{
using ::mbstate_t;
}
#endif #endif