diff options
author | Rich Felker <dalias@aerifal.cx> | 2013-07-24 18:17:09 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2013-07-24 18:17:09 -0400 |
commit | 4b0306c83c8c3614afbaf18a18e22d24f335ea04 (patch) | |
tree | 430a51a14852c246201eb9d181e4893fa20dea84 /src/locale/wcscoll.c | |
parent | 17a60f9d327c6f8b5707a06f9497d846e75c01f2 (diff) | |
download | musl-4b0306c83c8c3614afbaf18a18e22d24f335ea04.tar.gz musl-4b0306c83c8c3614afbaf18a18e22d24f335ea04.tar.bz2 musl-4b0306c83c8c3614afbaf18a18e22d24f335ea04.tar.xz musl-4b0306c83c8c3614afbaf18a18e22d24f335ea04.zip |
prepare strcoll/wcscoll for LC_COLLATE support and add ABI symbols
Diffstat (limited to 'src/locale/wcscoll.c')
-rw-r--r-- | src/locale/wcscoll.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/locale/wcscoll.c b/src/locale/wcscoll.c index cdbce1c2..95a4ca74 100644 --- a/src/locale/wcscoll.c +++ b/src/locale/wcscoll.c @@ -1,7 +1,16 @@ #include <wchar.h> +#include <locale.h> +#include "libc.h" /* FIXME: stub */ -int wcscoll(const wchar_t *l, const wchar_t *r) +int __wcscoll_l(const wchar_t *l, const wchar_t *r, locale_t locale) { return wcscmp(l, r); } + +int wcscoll(const wchar_t *l, const wchar_t *r) +{ + return __wcscoll_l(l, r, LC_GLOBAL_LOCALE); +} + +weak_alias(__wcscoll_l, wcscoll_l); |