소스 검색

Guard __strcoll/strcoll for C locales and use the same logic as elsewhere

Peter S. Mazinger 20 년 전
부모
커밋
ce5e361db2
1개의 변경된 파일6개의 추가작업 그리고 2개의 파일을 삭제
  1. 6 2
      libc/string/arm/strcmp.S

+ 6 - 2
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