#if !ENABLE_FEATURE_ASSUME_UNICODE
+# define bb_mbstrlen(string) strlen(string)
# define check_unicode_in_env() ((void)0)
#else
+size_t bb_mbstrlen(const char *string) FAST_FUNC;
+
# if ENABLE_LOCALE_SUPPORT
# include <wchar.h>
# else
+/* Crude "locale support" which knows only C and Unicode locales */
+
# if !ENABLE_FEATURE_CHECK_UNICODE_IN_ENV
# define check_unicode_in_env() ((void)0)
# else
int iswalnum(wint_t wc) FAST_FUNC;
int iswpunct(wint_t wc) FAST_FUNC;
-# endif
+# endif /* !LOCALE_SUPPORT */
-#endif
+#endif /* FEATURE_ASSUME_UNICODE */
#endif