Browse Source

I guess nobody's tried this stuff. I apparently checked in the wrong version
several weeks ago.

Manuel Novoa III 22 years ago
parent
commit
a7ce5bbdcd
1 changed files with 8 additions and 0 deletions
  1. 8 0
      include/wchar.h

+ 8 - 0
include/wchar.h

@@ -68,6 +68,13 @@ typedef unsigned int wint_t;
 #ifndef __mbstate_t_defined
 # define __mbstate_t_defined	1
 /* Conversion state information.  */
+#if 1
+typedef struct
+{
+	wchar_t mask;
+	wchar_t wc;
+} __mbstate_t;
+#else
 typedef struct
 {
   int __count;
@@ -78,6 +85,7 @@ typedef struct
   } __value;		/* Value so far.  */
 } __mbstate_t;
 #endif
+#endif
 #undef __need_mbstate_t