From 766ef9a2cc72c5888a3abe83e63442825bf88920 Mon Sep 17 00:00:00 2001 From: "Peter S. Mazinger" Date: Wed, 22 Mar 2006 17:28:37 +0000 Subject: Correct build if UCLIBC_HAS_CTYPE_TABLES is not defined --- libc/string/strcasecmp.c | 2 +- libc/string/strcasestr.c | 6 +++--- libc/string/strncasecmp.c | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) (limited to 'libc/string') 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 -#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) -- cgit v1.2.3