This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/28975] conflicting declaration 'typedef struct mbstate_t mbstate_t'
- From: "waspswarm at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 7 Sep 2006 15:39:17 -0000
- Subject: [Bug c++/28975] conflicting declaration 'typedef struct mbstate_t mbstate_t'
- References: <bug-28975-13101@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from waspswarm at gmail dot com 2006-09-07 15:39 -------
Here is /usr/include/sys/_mbstate_t.h
/*
* @(#)B11.23_LR
*/
#ifndef _MBSTATE_T_INCLUDED
#define _MBSTATE_T_INCLUDED
# ifndef _MBSTATE_T
# define _MBSTATE_T
typedef struct {
unsigned char __parse_size:3;
unsigned char __dummy:4;
unsigned char __shift_state:1;
char __parse_buf[7];
} mbstate_t;
# endif
#endif /* _MBSTATE_T_INCLUDED */
Here is the section of /usr/local/include/c++/4.1.1/cwchar around line 66:
// 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 _GLIBCXX_HAVE_MBSTATE_T
extern "C"
{
typedef struct
{
int __fill[6];
} mbstate_t;
}
#endif
namespace std
{
using ::mbstate_t;
}
--
waspswarm at gmail dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |waspswarm at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28975