diff options
author | Calin Juravle <calin@google.com> | 2014-05-13 12:47:27 +0100 |
---|---|---|
committer | Calin Juravle <calin@google.com> | 2014-05-13 12:47:27 +0100 |
commit | 0c472479a2b34f67b606e6419c506ddfdcf1a403 (patch) | |
tree | 7213cccf629b06778c831097e724ba1178baab13 | |
parent | 38967f3d1fbc9326beb7eef8c084b334e9bd65f5 (diff) | |
download | android_bionic-0c472479a2b34f67b606e6419c506ddfdcf1a403.tar.gz android_bionic-0c472479a2b34f67b606e6419c506ddfdcf1a403.tar.bz2 android_bionic-0c472479a2b34f67b606e6419c506ddfdcf1a403.zip |
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
-rw-r--r-- | libc/include/wchar.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libc/include/wchar.h b/libc/include/wchar.h index 4ac468d9d..5ef1cf104 100644 --- a/libc/include/wchar.h +++ b/libc/include/wchar.h @@ -47,7 +47,7 @@ typedef struct { #endif } mbstate_t; -typedef enum { +enum { WC_TYPE_INVALID = 0, WC_TYPE_ALNUM, WC_TYPE_ALPHA, @@ -62,7 +62,9 @@ typedef enum { WC_TYPE_UPPER, WC_TYPE_XDIGIT, WC_TYPE_MAX -} wctype_t; +}; + +typedef int wctype_t; #define WEOF ((wint_t)(-1)) |