summaryrefslogtreecommitdiffstats
path: root/libc/string/strncasecmp.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/string/strncasecmp.c')
-rw-r--r--libc/string/strncasecmp.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/libc/string/strncasecmp.c b/libc/string/strncasecmp.c
index 9980dd704..ed052fa21 100644
--- a/libc/string/strncasecmp.c
+++ b/libc/string/strncasecmp.c
@@ -6,13 +6,16 @@
*/
#include "_string.h"
-#include <strings.h>
#include <ctype.h>
#include <locale.h>
#ifdef WANT_WIDE
# 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)
@@ -21,6 +24,8 @@ libc_hidden_proto(towlower)
# define TOLOWER(C) towlower((C))
# endif
#else
+/* Experimentally off - libc_hidden_proto(strncasecmp) */
+/* Experimentally off - libc_hidden_proto(strncasecmp_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(strncasecmp_l)
-
-libc_hidden_proto(strncasecmp)
int strncasecmp(register const Wchar *s1, register const Wchar *s2, size_t n)
{
return strncasecmp_l(s1, s2, n, __UCLIBC_CURLOCALE);
@@ -46,7 +48,7 @@ libc_hidden_def(strncasecmp)
#else /* defined(__UCLIBC_HAS_XLOCALE__) && !defined(__UCLIBC_DO_XLOCALE) */
-libc_hidden_proto(__XL_NPP(strncasecmp))
+/* Experimentally off - libc_hidden_proto(__XL_NPP(strncasecmp)) */
int __XL_NPP(strncasecmp)(register const Wchar *s1, register const Wchar *s2,
size_t n __LOCALE_PARAM )
{