From fbf868b243b07b0e91e8da11086bc172d7c146da Mon Sep 17 00:00:00 2001 From: "Peter S. Mazinger" Date: Tue, 3 Jan 2006 15:48:34 +0000 Subject: Provide __tolower and use it --- libc/misc/ctype/ctype.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'libc/misc/ctype') diff --git a/libc/misc/ctype/ctype.c b/libc/misc/ctype/ctype.c index 60301d48c..c53979e23 100644 --- a/libc/misc/ctype/ctype.c +++ b/libc/misc/ctype/ctype.c @@ -268,9 +268,11 @@ IS_FUNC_BODY(xdigit); /**********************************************************************/ #ifdef L_tolower +#undef tolower +#undef __tolower #ifdef __UCLIBC_HAS_CTYPE_TABLES__ -int tolower(int c) +int attribute_hidden __tolower(int c) { #if defined(__UCLIBC_HAS_CTYPE_ENFORCED__) assert(CTYPE_DOMAIN_CHECK(c)); @@ -280,12 +282,13 @@ int tolower(int c) #else /* __UCLIBC_HAS_CTYPE_TABLES__ */ -int tolower(int c) +int attribute_hidden __tolower(int c) { return __C_tolower(c); } #endif /* __UCLIBC_HAS_CTYPE_TABLES__ */ +strong_alias(__tolower,tolower) #endif /**********************************************************************/ -- cgit v1.2.3