diff options
Diffstat (limited to 'libc/string')
-rw-r--r-- | libc/string/strcasecmp.c | 2 | ||||
-rw-r--r-- | libc/string/strcasestr.c | 6 | ||||
-rw-r--r-- | libc/string/strncasecmp.c | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/libc/string/strcasecmp.c b/libc/string/strcasecmp.c index ac3f562a7..ad4d1aab6 100644 --- a/libc/string/strcasecmp.c +++ b/libc/string/strcasecmp.c @@ -24,7 +24,7 @@ libc_hidden_proto(towlower) libc_hidden_proto(tolower_l) # define TOLOWER(C) tolower_l((C), locale_arg) # else -#ifndef __UCLIBC_HAS_XLOCALE__ +#if !defined __UCLIBC_HAS_XLOCALE__ && defined __UCLIBC_HAS_CTYPE_TABLES__ libc_hidden_proto(__ctype_tolower) #endif libc_hidden_proto(tolower) diff --git a/libc/string/strcasestr.c b/libc/string/strcasestr.c index 72c1e4702..afef59985 100644 --- a/libc/string/strcasestr.c +++ b/libc/string/strcasestr.c @@ -8,10 +8,10 @@ #include "_string.h" #include <ctype.h> -#ifndef __UCLIBC_HAS_XLOCALE__ -libc_hidden_proto(__ctype_tolower) -#else +#ifdef __UCLIBC_HAS_XLOCALE__ libc_hidden_proto(__ctype_tolower_loc) +#elif __UCLIBC_HAS_CTYPE_TABLES__ +libc_hidden_proto(__ctype_tolower) #endif libc_hidden_proto(tolower) diff --git a/libc/string/strncasecmp.c b/libc/string/strncasecmp.c index 54de1b78c..0317bc124 100644 --- a/libc/string/strncasecmp.c +++ b/libc/string/strncasecmp.c @@ -24,7 +24,7 @@ libc_hidden_proto(towlower) libc_hidden_proto(tolower_l) # define TOLOWER(C) tolower_l((C), locale_arg) # else -#ifndef __UCLIBC_HAS_XLOCALE__ +#if !defined __UCLIBC_HAS_XLOCALE__ && defined __UCLIBC_HAS_CTYPE_TABLES__ libc_hidden_proto(__ctype_tolower) #endif libc_hidden_proto(tolower) |