diff options
Diffstat (limited to 'system/lib')
-rw-r--r-- | system/lib/libc.symbols | 3 | ||||
-rw-r--r-- | system/lib/libc/musl/src/locale/strcoll.c | 15 |
2 files changed, 18 insertions, 0 deletions
diff --git a/system/lib/libc.symbols b/system/lib/libc.symbols index 705b2c88..c427cf6f 100644 --- a/system/lib/libc.symbols +++ b/system/lib/libc.symbols @@ -74,6 +74,9 @@ T scalbnl T memcpy T strtod + T strcoll + T __strcoll_l + W strcoll_l T strcmp T strncmp T strcasecmp diff --git a/system/lib/libc/musl/src/locale/strcoll.c b/system/lib/libc/musl/src/locale/strcoll.c new file mode 100644 index 00000000..39ea1123 --- /dev/null +++ b/system/lib/libc/musl/src/locale/strcoll.c @@ -0,0 +1,15 @@ +#include <string.h> +#include <locale.h> +#include "libc.h" + +int __strcoll_l(const char *l, const char *r, locale_t loc) +{ + return strcmp(l, r); +} + +int strcoll(const char *l, const char *r) +{ + return __strcoll_l(l, r, 0); +} + +weak_alias(__strcoll_l, strcoll_l); |