Change wctype_t from enum to int
This increases bionic source compatibility with other libcs where "wctype_t foo = 0;" is valid without -fpermissive. Bug: 14646243 Change-Id: Ia9bd0785bc42c7b46e2bb6c3d9b9a9d3f769d983
This commit is contained in:
parent
38967f3d1f
commit
0c472479a2
@ -47,7 +47,7 @@ typedef struct {
|
|||||||
#endif
|
#endif
|
||||||
} mbstate_t;
|
} mbstate_t;
|
||||||
|
|
||||||
typedef enum {
|
enum {
|
||||||
WC_TYPE_INVALID = 0,
|
WC_TYPE_INVALID = 0,
|
||||||
WC_TYPE_ALNUM,
|
WC_TYPE_ALNUM,
|
||||||
WC_TYPE_ALPHA,
|
WC_TYPE_ALPHA,
|
||||||
@ -62,7 +62,9 @@ typedef enum {
|
|||||||
WC_TYPE_UPPER,
|
WC_TYPE_UPPER,
|
||||||
WC_TYPE_XDIGIT,
|
WC_TYPE_XDIGIT,
|
||||||
WC_TYPE_MAX
|
WC_TYPE_MAX
|
||||||
} wctype_t;
|
};
|
||||||
|
|
||||||
|
typedef int wctype_t;
|
||||||
|
|
||||||
#define WEOF ((wint_t)(-1))
|
#define WEOF ((wint_t)(-1))
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user