Adjust mbstate_t to what we need.

* we maintain the character count and the ID of the corresponding
  ICU converter in mbstate_t
This commit is contained in:
Oliver Tappe 2011-11-22 17:23:04 +01:00
parent bf5ff48092
commit fa02fc6907

View File

@ -6,6 +6,7 @@
#define _WCHAR_H
#include <limits.h>
#include <stddef.h>
#include <stdio.h>
@ -26,8 +27,8 @@ typedef __WINT_TYPE__ wint_t;
typedef int wctype_t;
typedef struct {
int __count;
wint_t __value;
unsigned int count;
unsigned int converterID;
} mbstate_t;