am d4ae59dc
: Merge "Reserve space in mbstate to allow for proper wchar support"
* commit 'd4ae59dcf228cf602189c6d5e69fb65640b353e3': Reserve space in mbstate to allow for proper wchar support
This commit is contained in:
commit
fb15c73f3c
@ -112,7 +112,7 @@
|
|||||||
|
|
||||||
#define SSIZE_MAX LONG_MAX
|
#define SSIZE_MAX LONG_MAX
|
||||||
|
|
||||||
#define MB_LEN_MAX 1 /* No multibyte characters. */
|
#define MB_LEN_MAX 6
|
||||||
|
|
||||||
/* New code should use sysconf(_SC_PAGE_SIZE) instead. */
|
/* New code should use sysconf(_SC_PAGE_SIZE) instead. */
|
||||||
#ifndef PAGE_SIZE
|
#ifndef PAGE_SIZE
|
||||||
|
@ -39,8 +39,15 @@
|
|||||||
|
|
||||||
__BEGIN_DECLS
|
__BEGIN_DECLS
|
||||||
|
|
||||||
typedef __WINT_TYPE__ wint_t;
|
typedef __WINT_TYPE__ wint_t;
|
||||||
typedef struct { int dummy; } mbstate_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 {
|
typedef enum {
|
||||||
WC_TYPE_INVALID = 0,
|
WC_TYPE_INVALID = 0,
|
||||||
|
Loading…
Reference in New Issue
Block a user