Browse Source

str[n]casecmp.c: fix hidden usage

Provide visible str[n]casecmp[_l], wcs[n]casecmp[_l].

Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Peter S. Mazinger 13 years ago
parent
commit
25a3498935
2 changed files with 2 additions and 2 deletions
  1. 1 1
      libc/string/strcasecmp.c
  2. 1 1
      libc/string/strncasecmp.c

+ 1 - 1
libc/string/strcasecmp.c

@@ -61,7 +61,7 @@ int __XL_NPP(strcasecmp)(register const Wchar *s1, register const Wchar *s2
 	return r;
 #endif
 }
-#ifndef WANT_WIDE
+#if !defined WANT_WIDE || (defined WANT_WIDE && defined __UCLIBC_DO_XLOCALE)
 libc_hidden_def(__XL_NPP(strcasecmp))
 #endif
 

+ 1 - 1
libc/string/strncasecmp.c

@@ -64,7 +64,7 @@ int __XL_NPP(strncasecmp)(register const Wchar *s1, register const Wchar *s2,
 	return r;
 #endif
 }
-#ifndef WANT_WIDE
+#if !defined WANT_WIDE || (defined WANT_WIDE && defined __UCLIBC_DO_XLOCALE)
 libc_hidden_def(__XL_NPP(strncasecmp))
 #endif