[git commit master 1/1] str[n]casecmp.c: fix hidden usage

Peter S. Mazinger ps.m at gmx.net
Wed Mar 9 23:01:10 UTC 2011


commit: http://git.uclibc.org/uClibc/commit/?id=25a349893513aa257718aa92c3e8755b9d89eb7e
branch: http://git.uclibc.org/uClibc/commit/?id=refs/heads/master

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

Signed-off-by: Peter S. Mazinger <ps.m at gmx.net>
---
 libc/string/strcasecmp.c  |    2 +-
 libc/string/strncasecmp.c |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/libc/string/strcasecmp.c b/libc/string/strcasecmp.c
index 8c95ac0..f894e42 100644
--- a/libc/string/strcasecmp.c
+++ b/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
 
diff --git a/libc/string/strncasecmp.c b/libc/string/strncasecmp.c
index 4de0114..2eac47d 100644
--- a/libc/string/strncasecmp.c
+++ b/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
 
-- 
1.7.3.4



More information about the uClibc-cvs mailing list