summaryrefslogtreecommitdiff
path: root/libc/misc/wctype
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2006-01-03 17:17:14 +0000
committerPeter S. Mazinger <ps.m@gmx.net>2006-01-03 17:17:14 +0000
commit43123f2ccc714bbb4991b538dd70e411899f98e3 (patch)
treea6b583ea3efc976960012b79b44595afcb8837c1 /libc/misc/wctype
parent16fbf62c2044e872785f871ab5d901e30e64932e (diff)
Get rid of tolower/toupper jump reloc, correct tow* for XLOCALE
Diffstat (limited to 'libc/misc/wctype')
-rw-r--r--libc/misc/wctype/wctype.c13
1 files changed, 10 insertions, 3 deletions
diff --git a/libc/misc/wctype/wctype.c b/libc/misc/wctype/wctype.c
index 67b1ca600..659000558 100644
--- a/libc/misc/wctype/wctype.c
+++ b/libc/misc/wctype/wctype.c
@@ -378,7 +378,9 @@ strong_alias(__towlower_l,towlower_l)
#endif /* __LOCALE_C_ONLY */
+#ifndef L_towlower_l
strong_alias(__towlower,towlower)
+#endif
#endif
/**********************************************************************/
@@ -484,7 +486,9 @@ strong_alias(__towupper_l,towupper_l)
#endif /* __LOCALE_C_ONLY */
+#ifndef L_towupper_l
strong_alias(__towupper,towupper)
+#endif
#endif
/**********************************************************************/
@@ -724,11 +728,11 @@ weak_alias(__iswctype, iswctype)
#ifndef _tolower
#warning _tolower is undefined!
-#define _tolower(c) tolower(c)
+#define _tolower(c) __tolower(c)
#endif
#ifndef _toupper
#warning _toupper is undefined!
-#define _toupper(c) toupper(c)
+#define _toupper(c) __toupper(c)
#endif
wint_t attribute_hidden __towctrans(wint_t wc, wctrans_t desc)
@@ -880,10 +884,13 @@ wint_t attribute_hidden TOWCTRANS(wint_t wc, wctrans_t desc)
#ifdef L_towctrans_l
strong_alias(__towctrans_l, towctrans_l)
#endif /* L_towctrans_l */
-strong_alias(__towctrans,towctrans)
#endif /* __LOCALE_C_ONLY */
+#ifndef L_towctrans_l
+strong_alias(__towctrans,towctrans)
+#endif
+
#endif
/**********************************************************************/
#ifdef L_wctrans