apply hidden visibility to various remaining internal interfaces
[oweals/musl.git] / src / locale / strcoll.c
index 30bccd621ca9b6f377eb2817879ae1ca5fd7b49c..84f199ff9527d7728beea01cfbefbe06e61e02ad 100644 (file)
@@ -1,6 +1,16 @@
 #include <string.h>
+#include <locale.h>
+#include "locale_impl.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);
 }
+
+int strcoll(const char *l, const char *r)
+{
+       return __strcoll_l(l, r, CURRENT_LOCALE);
+}
+
+weak_alias(__strcoll_l, strcoll_l);