diff options
author | Peter S. Mazinger <ps.m@gmx.net> | 2006-03-22 17:28:37 +0000 |
---|---|---|
committer | Peter S. Mazinger <ps.m@gmx.net> | 2006-03-22 17:28:37 +0000 |
commit | 766ef9a2cc72c5888a3abe83e63442825bf88920 (patch) | |
tree | be53c24b4f6f02e83f52a2f66f1801055b3f21ba /libc/string | |
parent | 55b24e4e95a715b451507f2790d292fa8b1c2c1c (diff) |
Correct build if UCLIBC_HAS_CTYPE_TABLES is not defined
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) |