Reserve space in mbstate to allow for proper wchar support

Bug: 14382788
Change-Id: If023ac9bb65f95135cae7ebe89147e3985a69a96
This commit is contained in:
Calin Juravle
2014-04-29 15:48:34 +01:00
parent 3ac3f3fd0c
commit eab395e4a8
2 changed files with 10 additions and 3 deletions

View File

@@ -39,8 +39,15 @@
__BEGIN_DECLS
typedef __WINT_TYPE__ wint_t;
typedef struct { int dummy; } mbstate_t;
typedef __WINT_TYPE__ wint_t;
typedef struct {
#ifdef __LP32__
int dummy;
#else
// 8 bytes should be enough to support at least UTF-8
char __reserved[8];
#endif
} mbstate_t;
typedef enum {
WC_TYPE_INVALID = 0,