]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR libstdc++/7097 (_GLIBCPP_HAVE_MBSTATE_T breaks non-GLIB systems)
authorBenjamin Kosnik <bkoz@gcc.gnu.org>
Thu, 4 Jul 2002 00:29:27 +0000 (00:29 +0000)
committerBenjamin Kosnik <bkoz@gcc.gnu.org>
Thu, 4 Jul 2002 00:29:27 +0000 (00:29 +0000)
2002-07-03  Benjamin Kosnik  <bkoz@redhat.com>

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

From-SVN: r55230

libstdc++-v3/include/c/std_cwchar.h

index bad9923fa1e1c57ab844a87f37b5ff056b73cab9..d06f5e4efcd7d75ab3c5e556e5357c8807951870 100644 (file)
 // 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" 
+namespace std
 {
-  typedef struct 
+  extern "C" 
   {
-    int __fill[6];
-  } mbstate_t;
+    typedef struct 
+    {
+      int __fill[6];
+    } mbstate_t;
+  }
 }
 #endif
 
-namespace std 
-{
-  using ::mbstate_t;
-}
-
 #endif