projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
prepare strcoll/wcscoll for LC_COLLATE support and add ABI symbols
[musl]
/
src
/
locale
/
strcoll.c
diff --git
a/src/locale/strcoll.c
b/src/locale/strcoll.c
index
30bccd6
..
8b84b1e
100644
(file)
--- a/
src/locale/strcoll.c
+++ b/
src/locale/strcoll.c
@@
-1,6
+1,15
@@
#include <string.h>
#include <string.h>
+#include <locale.h>
+#include "libc.h"
-int
strcoll(const char *l, const char *r
)
+int
__strcoll_l(const char *l, const char *r, locale_t loc
)
{
return strcmp(l, r);
}
{
return strcmp(l, r);
}
+
+int strcoll(const char *l, const char *r)
+{
+ return __strcoll_l(l, r, LC_GLOBAL_LOCALE);
+}
+
+weak_alias(__strcoll_l, strcoll_l);