relibc: remove #[unsafe(no_mangle)] from fenv (C impl in toolchain libc)

This commit is contained in:
Red Bear OS
2026-07-10 09:03:52 +03:00
parent d65803384e
commit ad1cd26e35
+11 -11
View File
@@ -24,14 +24,14 @@ pub type fexcept_t = c_int;
#[repr(C)]
pub struct fenv_t { pub _unused: [u64; 2] }
#[unsafe(no_mangle)] pub unsafe extern "C" fn feclearexcept(_e: c_int) -> c_int { 0 }
#[unsafe(no_mangle)] pub unsafe extern "C" fn fegetenv(_ep: *mut fenv_t) -> c_int { 0 }
#[unsafe(no_mangle)] pub unsafe extern "C" fn fegetexceptflag(_fp: *mut fexcept_t, _e: c_int) -> c_int { 0 }
#[unsafe(no_mangle)] pub unsafe extern "C" fn fegetround() -> c_int { FE_TONEAREST }
#[unsafe(no_mangle)] pub unsafe extern "C" fn feholdexcept(_ep: *mut fenv_t) -> c_int { 0 }
#[unsafe(no_mangle)] pub unsafe extern "C" fn feraiseexcept(_e: c_int) -> c_int { 0 }
#[unsafe(no_mangle)] pub unsafe extern "C" fn fesetenv(_ep: *const fenv_t) -> c_int { 0 }
#[unsafe(no_mangle)] pub unsafe extern "C" fn fesetexceptflag(_fp: *const fexcept_t, _e: c_int) -> c_int { 0 }
#[unsafe(no_mangle)] pub unsafe extern "C" fn fesetround(_r: c_int) -> c_int { 0 }
#[unsafe(no_mangle)] pub unsafe extern "C" fn fetestexcept(_e: c_int) -> c_int { 0 }
#[unsafe(no_mangle)] pub unsafe extern "C" fn feupdateenv(_ep: *const fenv_t) -> c_int { 0 }
pub unsafe extern "C" fn feclearexcept(_e: c_int) -> c_int { 0 }
pub unsafe extern "C" fn fegetenv(_ep: *mut fenv_t) -> c_int { 0 }
pub unsafe extern "C" fn fegetexceptflag(_fp: *mut fexcept_t, _e: c_int) -> c_int { 0 }
pub unsafe extern "C" fn fegetround() -> c_int { FE_TONEAREST }
pub unsafe extern "C" fn feholdexcept(_ep: *mut fenv_t) -> c_int { 0 }
pub unsafe extern "C" fn feraiseexcept(_e: c_int) -> c_int { 0 }
pub unsafe extern "C" fn fesetenv(_ep: *const fenv_t) -> c_int { 0 }
pub unsafe extern "C" fn fesetexceptflag(_fp: *const fexcept_t, _e: c_int) -> c_int { 0 }
pub unsafe extern "C" fn fesetround(_r: c_int) -> c_int { 0 }
pub unsafe extern "C" fn fetestexcept(_e: c_int) -> c_int { 0 }
pub unsafe extern "C" fn feupdateenv(_ep: *const fenv_t) -> c_int { 0 }