libc: fix missing bcmp symbol
This commit is contained in:
parent
a14206204a
commit
d7111e8d99
@ -91,3 +91,8 @@ pub unsafe extern "C" fn memmove(dst: *mut c_void, src: *const c_void, n: usize)
|
|||||||
pub unsafe extern "C" fn memcmp(s1: *const c_void, s2: *const c_void, n: usize) -> c_int {
|
pub unsafe extern "C" fn memcmp(s1: *const c_void, s2: *const c_void, n: usize) -> c_int {
|
||||||
compiler_builtins::mem::memcmp(s1.cast(), s2.cast(), n)
|
compiler_builtins::mem::memcmp(s1.cast(), s2.cast(), n)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[no_mangle]
|
||||||
|
pub unsafe extern "C" fn bcmp(s1: *const c_void, s2: *const c_void, n: usize) -> c_int {
|
||||||
|
compiler_builtins::mem::bcmp(s1.cast(), s2.cast(), n)
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user