Explorar o código

fixup! strcoll as strcmp because no locale

jD91mZM2 %!s(int64=6) %!d(string=hai) anos
pai
achega
5b3e09ee16
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/string/src/lib.rs

+ 1 - 1
src/string/src/lib.rs

@@ -142,7 +142,7 @@ pub unsafe extern "C" fn strcmp(s1: *const c_char, s2: *const c_char) -> c_int {
     strncmp(s1, s2, usize::MAX)
     strncmp(s1, s2, usize::MAX)
 }
 }
 
 
-// #[no_mangle]
+#[no_mangle]
 pub unsafe extern "C" fn strcoll(s1: *const c_char, s2: *const c_char) -> c_int {
 pub unsafe extern "C" fn strcoll(s1: *const c_char, s2: *const c_char) -> c_int {
     // relibc has no locale stuff (yet)
     // relibc has no locale stuff (yet)
     strcmp(s1, s2)
     strcmp(s1, s2)