summaryrefslogtreecommitdiff
path: root/libc/string
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2005-12-06 14:30:07 +0000
committerPeter S. Mazinger <ps.m@gmx.net>2005-12-06 14:30:07 +0000
commitce5e361db2743fdb489da62fdd8becfa772fff22 (patch)
treecd2d488fbd2bffe925254eafae9669b794b6c7e8 /libc/string
parent0a8209d901e1c91f9f6fd130c3fa6919fc44780d (diff)
Guard __strcoll/strcoll for C locales and use the same logic as elsewhere
Diffstat (limited to 'libc/string')
-rw-r--r--libc/string/arm/strcmp.S8
1 files changed, 6 insertions, 2 deletions
diff --git a/libc/string/arm/strcmp.S b/libc/string/arm/strcmp.S
index 6913906ee..4e2e3f5b5 100644
--- a/libc/string/arm/strcmp.S
+++ b/libc/string/arm/strcmp.S
@@ -29,6 +29,8 @@
* by Erik Andersen <andersen@codepoet.org>
*/
+#include <locale.h>
+
.global strcmp
.set strcmp,__strcmp
.text
@@ -48,5 +50,7 @@ __strcmp:
mov pc, lr
.size __strcmp,.-__strcmp
-.weak strcoll ; strcoll = strcmp
-.global __strcoll ; __strcoll = strcoll
+#ifdef __LOCALE_C_ONLY
+.weak __strcoll ; __strcoll = __strcmp
+.global strcoll ; .set strcoll,__strcoll
+#endif