diff options
author | Jukka Jylänki <jujjyl@gmail.com> | 2014-02-06 17:26:38 -0500 |
---|---|---|
committer | Jukka Jylänki <jujjyl@gmail.com> | 2014-02-06 17:26:38 -0500 |
commit | 95b77f9e4abac6cb41a5269d087f296ebfac4f66 (patch) | |
tree | 73fb57b4b40c10365c38feef7addfdee870475bf /system | |
parent | a2f95d50985660324812286771dbfdcf7da638a4 (diff) |
Add strcoll as well so that library.js does not need to depend on musl libc code.
Diffstat (limited to 'system')
-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); |