summaryrefslogtreecommitdiff
path: root/libc/misc/wctype/_wctype.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/misc/wctype/_wctype.c')
-rw-r--r--libc/misc/wctype/_wctype.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/libc/misc/wctype/_wctype.c b/libc/misc/wctype/_wctype.c
index 84c308a..0f19cad 100644
--- a/libc/misc/wctype/_wctype.c
+++ b/libc/misc/wctype/_wctype.c
@@ -38,9 +38,7 @@
#include <bits/uClibc_uwchar.h>
libc_hidden_proto(strcmp)
-libc_hidden_proto(__C_ctype_tolower)
libc_hidden_proto(tolower)
-libc_hidden_proto(__C_ctype_toupper)
libc_hidden_proto(toupper)
libc_hidden_proto(towlower)
libc_hidden_proto(towupper)
@@ -57,10 +55,15 @@ libc_hidden_proto(towlower_l)
libc_hidden_proto(towupper_l)
libc_hidden_proto(towctrans_l)
libc_hidden_proto(iswctype_l)
-#else
+#elif __UCLIBC_HAS_CTYPE_TABLES__
libc_hidden_proto(__ctype_b)
#endif /* __UCLIBC_HAS_XLOCALE__ */
+#ifdef __UCLIBC_HAS_CTYPE_TABLES__
+libc_hidden_proto(__C_ctype_tolower)
+libc_hidden_proto(__C_ctype_toupper)
+#endif
+
/* We know wide char support is enabled. We wouldn't be here otherwise. */
/* Define this if you want to unify the towupper and towlower code in the