This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[v3] libstdc++/7097
- From: Benjamin Kosnik <bkoz at redhat dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Wed, 3 Jul 2002 10:48:58 -0700
- Subject: [v3] libstdc++/7097
Small buglet. This is not a part of code that default configures touch.
Awaiting feedback, then I'd like to move it to the gcc-3_1-branch as well.
tested x86/linux
-benjamin
2002-07-03 Benjamin Kosnik <bkoz@redhat.com>
PR libstdc++/7097
* include/c/std_cwchar.h: Fix.
Index: include/c/std_cwchar.h
===================================================================
RCS file: /cvs/gcc/gcc/libstdc++-v3/include/c/std_cwchar.h,v
retrieving revision 1.5
diff -c -p -r1.5 std_cwchar.h
*** include/c/std_cwchar.h 21 Jun 2002 20:20:41 -0000 1.5
--- include/c/std_cwchar.h 3 Jul 2002 17:11:43 -0000
***************
*** 47,64 ****
// 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.
#ifndef _GLIBCPP_HAVE_MBSTATE_T
! extern "C"
{
! typedef struct
{
! int __fill[6];
! } mbstate_t;
}
#endif
-
- namespace std
- {
- using ::mbstate_t;
- }
#endif
--- 47,62 ----
// 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.
#ifndef _GLIBCPP_HAVE_MBSTATE_T
! namespace std
{
! extern "C"
{
! typedef struct
! {
! int __fill[6];
! } mbstate_t;
! }
}
#endif
#endif