aboutsummaryrefslogtreecommitdiff
path: root/system/lib/libc/musl/src/locale/wcscoll.c
diff options
context:
space:
mode:
Diffstat (limited to 'system/lib/libc/musl/src/locale/wcscoll.c')
-rw-r--r--system/lib/libc/musl/src/locale/wcscoll.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/system/lib/libc/musl/src/locale/wcscoll.c b/system/lib/libc/musl/src/locale/wcscoll.c
new file mode 100644
index 00000000..20a60900
--- /dev/null
+++ b/system/lib/libc/musl/src/locale/wcscoll.c
@@ -0,0 +1,16 @@
+#include <wchar.h>
+#include <locale.h>
+#include "libc.h"
+
+/* FIXME: stub */
+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, 0);
+}
+
+weak_alias(__wcscoll_l, wcscoll_l);