From 16fbf62c2044e872785f871ab5d901e30e64932e Mon Sep 17 00:00:00 2001 From: "Peter S. Mazinger" Date: Tue, 3 Jan 2006 17:15:15 +0000 Subject: Add __toupper, remove unneeded undefs for tolower --- libc/misc/ctype/ctype.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'libc/misc/ctype') diff --git a/libc/misc/ctype/ctype.c b/libc/misc/ctype/ctype.c index c53979e23..0a7e1bf84 100644 --- a/libc/misc/ctype/ctype.c +++ b/libc/misc/ctype/ctype.c @@ -268,8 +268,6 @@ IS_FUNC_BODY(xdigit); /**********************************************************************/ #ifdef L_tolower -#undef tolower -#undef __tolower #ifdef __UCLIBC_HAS_CTYPE_TABLES__ int attribute_hidden __tolower(int c) @@ -313,7 +311,7 @@ weak_alias(__tolower_l, tolower_l) #ifdef __UCLIBC_HAS_CTYPE_TABLES__ -int toupper(int c) +int attribute_hidden __toupper(int c) { #if defined(__UCLIBC_HAS_CTYPE_ENFORCED__) assert(CTYPE_DOMAIN_CHECK(c)); @@ -323,12 +321,13 @@ int toupper(int c) #else /* __UCLIBC_HAS_CTYPE_TABLES__ */ -int toupper(int c) +int attribute_hidden __toupper(int c) { return __C_toupper(c); } #endif /* __UCLIBC_HAS_CTYPE_TABLES__ */ +strong_alias(__toupper,toupper) #endif /**********************************************************************/ -- cgit v1.2.3