]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
2005-03-16 Richard Henderson <rth@redhat.com>
authorRoland McGrath <roland@gnu.org>
Mon, 17 Oct 2005 04:52:44 +0000 (04:52 +0000)
committerRoland McGrath <roland@gnu.org>
Mon, 17 Oct 2005 04:52:44 +0000 (04:52 +0000)
[BZ #721]
* include/wchar.h (__wcscoll): Remove.
* wcsmbs/wcscoll.c: Define wcscoll directly instead of via __wcscoll.
* string/strcoll.c: Don't issue libc_hidden_def STRCOLL redefined.

include/wchar.h
string/strcoll.c
wcsmbs/wcscoll.c

index 73bd4a8fefe5938b1c3269e55913561634fe467d..0f91114c4184c7a2e51e0f6b3a08d938e6a35f30 100644 (file)
@@ -56,7 +56,6 @@ extern int __wcscasecmp (__const wchar_t *__s1, __const wchar_t *__s2)
 extern int __wcsncasecmp (__const wchar_t *__s1, __const wchar_t *__s2,
                          size_t __n)
      __attribute_pure__;
-extern int __wcscoll (__const wchar_t *__s1, __const wchar_t *__s2);
 extern size_t __wcslen (__const wchar_t *__s) __attribute_pure__;
 extern size_t __wcsnlen (__const wchar_t *__s, size_t __maxlen)
      __attribute_pure__;
index 8a73cae564f96a2dd9624d33ac0f1725bdba4ce5..8e8fdc77926709c3d866d4ff4044de3aca63a598 100644 (file)
@@ -23,6 +23,7 @@
 # define STRING_TYPE char
 # define STRCOLL strcoll
 # define STRCOLL_L __strcoll_l
+# define USE_HIDDEN_DEF
 #endif
 
 #include "../locale/localeinfo.h"
@@ -35,6 +36,7 @@ STRCOLL (s1, s2)
 {
   return STRCOLL_L (s1, s2, _NL_CURRENT_LOCALE);
 }
-#if !defined WIDE_CHAR_VERSION
-libc_hidden_def (strcoll)
+
+#ifdef USE_HIDDEN_DEF
+libc_hidden_def (STRCOLL)
 #endif
index ed6db06e4e34b31560b923881ed0abba48d582c4..ae3d48c623884e9b905841654792428659d46906 100644 (file)
 
 #define STRING_TYPE wchar_t
 #define USTRING_TYPE wint_t
-#define STRCOLL __wcscoll
+#define STRCOLL wcscoll
 #define STRCOLL_L __wcscoll_l
 
 #include "../string/strcoll.c"
 
 #ifndef USE_IN_EXTENDED_LOCALE_MODEL
-weak_alias (__wcscoll, wcscoll)
 libc_hidden_weak (wcscoll)
 #endif