diff options
Diffstat (limited to 'include/unicode.h')
-rw-r--r-- | include/unicode.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/include/unicode.h b/include/unicode.h index 0317a2151..cdf35acb7 100644 --- a/include/unicode.h +++ b/include/unicode.h | |||
@@ -33,7 +33,11 @@ enum { | |||
33 | 33 | ||
34 | # if CONFIG_LAST_SUPPORTED_WCHAR < 126 || CONFIG_LAST_SUPPORTED_WCHAR >= 0x30000 | 34 | # if CONFIG_LAST_SUPPORTED_WCHAR < 126 || CONFIG_LAST_SUPPORTED_WCHAR >= 0x30000 |
35 | # undef CONFIG_LAST_SUPPORTED_WCHAR | 35 | # undef CONFIG_LAST_SUPPORTED_WCHAR |
36 | # if ENABLE_PLATFORM_MINGW32 | ||
37 | # define CONFIG_LAST_SUPPORTED_WCHAR 0x10ffff /* full unicode range */ | ||
38 | # else | ||
36 | # define CONFIG_LAST_SUPPORTED_WCHAR 0x2ffff | 39 | # define CONFIG_LAST_SUPPORTED_WCHAR 0x2ffff |
40 | # endif | ||
37 | # endif | 41 | # endif |
38 | 42 | ||
39 | # if CONFIG_LAST_SUPPORTED_WCHAR < 0x300 | 43 | # if CONFIG_LAST_SUPPORTED_WCHAR < 0x300 |
@@ -87,6 +91,21 @@ void reinit_unicode(const char *LANG) FAST_FUNC; | |||
87 | # undef MB_CUR_MAX | 91 | # undef MB_CUR_MAX |
88 | # define MB_CUR_MAX 6 | 92 | # define MB_CUR_MAX 6 |
89 | 93 | ||
94 | #if ENABLE_PLATFORM_MINGW32 | ||
95 | #undef wint_t | ||
96 | #undef mbstate_t | ||
97 | #undef mbstowcs | ||
98 | #undef wcstombs | ||
99 | #undef wcrtomb | ||
100 | #undef iswspace | ||
101 | #undef iswalnum | ||
102 | #undef iswpunct | ||
103 | #undef wcwidth | ||
104 | |||
105 | #undef wchar_t | ||
106 | #define wchar_t uint32_t /* keep in sync with MINGW_BB_WCHAR_T */ | ||
107 | #endif | ||
108 | |||
90 | /* Prevent name collisions */ | 109 | /* Prevent name collisions */ |
91 | # define wint_t bb_wint_t | 110 | # define wint_t bb_wint_t |
92 | # define mbstate_t bb_mbstate_t | 111 | # define mbstate_t bb_mbstate_t |