summaryrefslogtreecommitdiff
path: root/libc
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2008-06-02 05:49:58 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2008-06-02 05:49:58 +0000
commitad636db9fe434e86b312f501ae794fdb5a91c92e (patch)
treedb42e67b34bc40ccdd0d5ce099be82af597e9e63 /libc
parent0119403c3acb30557f5efdf8aacb378bed6a6e8e (diff)
fix fallout from libc_hidden_proto removal
Diffstat (limited to 'libc')
-rw-r--r--libc/string/strcasecmp.c3
-rw-r--r--libc/string/strncasecmp.c2
2 files changed, 4 insertions, 1 deletions
diff --git a/libc/string/strcasecmp.c b/libc/string/strcasecmp.c
index 54ce7f8c7..8a7836d82 100644
--- a/libc/string/strcasecmp.c
+++ b/libc/string/strcasecmp.c
@@ -11,11 +11,12 @@
#include <locale.h>
#ifdef WANT_WIDE
-# include <wchar.h>
# 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)
diff --git a/libc/string/strncasecmp.c b/libc/string/strncasecmp.c
index fea9006cb..ab84be7ba 100644
--- a/libc/string/strncasecmp.c
+++ b/libc/string/strncasecmp.c
@@ -14,7 +14,9 @@
# define strncasecmp wcsncasecmp
# define strncasecmp_l wcsncasecmp_l
libc_hidden_proto(wcsncasecmp)
+# if defined(__USE_GNU) && defined(__UCLIBC_HAS_XLOCALE__)
libc_hidden_proto(wcsncasecmp_l)
+# endif
# ifdef __UCLIBC_DO_XLOCALE
libc_hidden_proto(towlower_l)
# define TOLOWER(C) towlower_l((C), locale_arg)