diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/unicode.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/include/unicode.h b/include/unicode.h index be64a50e2..e0061478d 100644 --- a/include/unicode.h +++ b/include/unicode.h | |||
@@ -7,10 +7,13 @@ | |||
7 | 7 | ||
8 | #if !ENABLE_FEATURE_ASSUME_UNICODE | 8 | #if !ENABLE_FEATURE_ASSUME_UNICODE |
9 | 9 | ||
10 | # define bb_mbstrlen(string) strlen(string) | ||
10 | # define check_unicode_in_env() ((void)0) | 11 | # define check_unicode_in_env() ((void)0) |
11 | 12 | ||
12 | #else | 13 | #else |
13 | 14 | ||
15 | size_t bb_mbstrlen(const char *string) FAST_FUNC; | ||
16 | |||
14 | # if ENABLE_LOCALE_SUPPORT | 17 | # if ENABLE_LOCALE_SUPPORT |
15 | 18 | ||
16 | # include <wchar.h> | 19 | # include <wchar.h> |
@@ -19,6 +22,8 @@ | |||
19 | 22 | ||
20 | # else | 23 | # else |
21 | 24 | ||
25 | /* Crude "locale support" which knows only C and Unicode locales */ | ||
26 | |||
22 | # if !ENABLE_FEATURE_CHECK_UNICODE_IN_ENV | 27 | # if !ENABLE_FEATURE_CHECK_UNICODE_IN_ENV |
23 | # define check_unicode_in_env() ((void)0) | 28 | # define check_unicode_in_env() ((void)0) |
24 | # else | 29 | # else |
@@ -50,8 +55,8 @@ int iswspace(wint_t wc) FAST_FUNC; | |||
50 | int iswalnum(wint_t wc) FAST_FUNC; | 55 | int iswalnum(wint_t wc) FAST_FUNC; |
51 | int iswpunct(wint_t wc) FAST_FUNC; | 56 | int iswpunct(wint_t wc) FAST_FUNC; |
52 | 57 | ||
53 | # endif | 58 | # endif /* !LOCALE_SUPPORT */ |
54 | 59 | ||
55 | #endif | 60 | #endif /* FEATURE_ASSUME_UNICODE */ |
56 | 61 | ||
57 | #endif | 62 | #endif |