_G_config.h: Re-guard the __mbstate_t declaration.
authorBenjamin Kosnik <bkoz@gnu.org>
Thu, 5 Oct 2000 05:54:07 +0000 (05:54 +0000)
committerBenjamin Kosnik <bkoz@gcc.gnu.org>
Thu, 5 Oct 2000 05:54:07 +0000 (05:54 +0000)
2000-10-04  Benjamin Kosnik  <bkoz@gnu.org>

* libio/_G_config.h : Re-guard the __mbstate_t declaration.

From-SVN: r36716

libstdc++-v3/ChangeLog
libstdc++-v3/libio/ChangeLog
libstdc++-v3/libio/_G_config.h

index c80a8e95a17fa7972266d2618fa53f69328e0dfa..223f0a62db468c7986d13fecd82390cd4a1e4a4d 100644 (file)
@@ -1,3 +1,7 @@
+2000-10-04  Benjamin Kosnik  <bkoz@gnu.org>
+
+       * libio/_G_config.h : Re-guard the __mbstate_t declaration.
+
 2000-10-03  Benjamin Kosnik  <bkoz@purist.soma.redhat.com>
 
        * docs/22_locale/howto.html: Add link to proto-documentation on
index 0efe9e044bfe0216794c4f64e2a3057f90b906c1..8ef42d4a2499facc0392d4e976c6b1dce63d327a 100644 (file)
@@ -1,4 +1,8 @@
-2000-09-27  benjamin kosnik  <bkoz@haight.constant.com>
+2000-10-04  Benjamin Kosnik  <bkoz@gnu.org>
+
+       * _G_config.h : Re-guard the __mbstate_t declaration.
+
+2000-09-27  Benjamin Kosnik  <bkoz@gnu.org>
 
        * libioP.h: Remove fcntl.h include.
 
index 36e5feac8bc31a517dcb987bf8dd667909e5e15a..a0415f6482c0a6bc638fd8a0802642c3d768019b 100644 (file)
@@ -30,15 +30,17 @@ typedef unsigned int wint_t;
 
 /* For use as part of glibc (native) or as part of libstdc++ (maybe
    not glibc) */
-#if __GLIBC__ < 2 || (__GLIBC__ == 2  && __GLIBC_MINOR__ <= 1)
+#ifndef __mbstate_t_defined
+# define __mbstate_t_defined   1
 # ifdef _GLIBCPP_USE_WCHAR_T
 typedef struct
 {
-       int count;
-       wint_t value;
+  int count;
+  wint_t value;
 }__mbstate_t;
 # endif
 #endif
+#undef __need_mbstate_t
 
 typedef size_t _G_size_t;
 
@@ -49,6 +51,7 @@ typedef struct
   __off_t __pos;
   __mbstate_t __state;
 } _G_fpos_t;
+
 typedef struct
 {
   __off64_t __pos;