summaryrefslogtreecommitdiff
path: root/libc
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2006-01-03 17:15:15 +0000
committerPeter S. Mazinger <ps.m@gmx.net>2006-01-03 17:15:15 +0000
commit16fbf62c2044e872785f871ab5d901e30e64932e (patch)
tree5342e3227fa9e3817869d16f94afce0c2283cb6c /libc
parentfbf868b243b07b0e91e8da11086bc172d7c146da (diff)
Add __toupper, remove unneeded undefs for tolower
Diffstat (limited to 'libc')
-rw-r--r--libc/misc/ctype/ctype.c7
1 files changed, 3 insertions, 4 deletions
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
/**********************************************************************/