summaryrefslogtreecommitdiffstats
path: root/libc/string/strcasecmp.c
diff options
context:
space:
mode:
authorCarmelo Amoroso <carmelo.amoroso@st.com>2008-06-19 07:24:59 +0000
committerCarmelo Amoroso <carmelo.amoroso@st.com>2008-06-19 07:24:59 +0000
commit4295030e50db499e51d397af2f2c3a69cc13d96d (patch)
tree7d8065b8c01b30789f132332e7c8e4116bcf0f83 /libc/string/strcasecmp.c
parentfd5b87c1ff55e5c562d0387df2137608b73502ab (diff)
downloaduClibc-alpine-4295030e50db499e51d397af2f2c3a69cc13d96d.tar.bz2
uClibc-alpine-4295030e50db499e51d397af2f2c3a69cc13d96d.tar.xz
libc_hidden_proto moved to string.h
Diffstat (limited to 'libc/string/strcasecmp.c')
-rw-r--r--libc/string/strcasecmp.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/libc/string/strcasecmp.c b/libc/string/strcasecmp.c
index 7fa521fb7..f9852236b 100644
--- a/libc/string/strcasecmp.c
+++ b/libc/string/strcasecmp.c
@@ -6,13 +6,16 @@
*/
#include "_string.h"
-#include <strings.h>
#include <ctype.h>
#include <locale.h>
#ifdef WANT_WIDE
# define strcasecmp wcscasecmp
# define strcasecmp_l wcscasecmp_l
+libc_hidden_proto(wcscasecmp)
+# if defined(__USE_GNU) && defined(__UCLIBC_HAS_XLOCALE__)
+libc_hidden_proto(wcscasecmp_l)
+# endif
# ifdef __UCLIBC_DO_XLOCALE
libc_hidden_proto(towlower_l)
# define TOLOWER(C) towlower_l((C), locale_arg)
@@ -21,6 +24,8 @@ libc_hidden_proto(towlower)
# define TOLOWER(C) towlower((C))
# endif
#else
+/* Experimentally off - libc_hidden_proto(strcasecmp) */
+/* Experimentally off - libc_hidden_proto(strcasecmp_l) */
# ifdef __UCLIBC_DO_XLOCALE
libc_hidden_proto(tolower_l)
# define TOLOWER(C) tolower_l((C), locale_arg)
@@ -35,9 +40,6 @@ libc_hidden_proto(tolower)
#if defined(__UCLIBC_HAS_XLOCALE__) && !defined(__UCLIBC_DO_XLOCALE)
-libc_hidden_proto(strcasecmp_l)
-
-libc_hidden_proto(strcasecmp)
int strcasecmp(register const Wchar *s1, register const Wchar *s2)
{
return strcasecmp_l(s1, s2, __UCLIBC_CURLOCALE);
@@ -46,7 +48,7 @@ libc_hidden_def(strcasecmp)
#else /* defined(__UCLIBC_HAS_XLOCALE__) && !defined(__UCLIBC_DO_XLOCALE) */
-libc_hidden_proto(__XL_NPP(strcasecmp))
+/* Experimentally off - libc_hidden_proto(__XL_NPP(strcasecmp)) */
int __XL_NPP(strcasecmp)(register const Wchar *s1, register const Wchar *s2
__LOCALE_PARAM )
{