Skip to content

Commit 4c33a67

Browse files
MabezDevbjoernQ
authored andcommitted
use linkage = 'weak' for missing intrinsic stub (esp-rs#191)
1 parent 6ce10cc commit 4c33a67

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

esp-wifi/src/common_adapter/mod.rs

+1
Original file line numberDiff line numberDiff line change
@@ -469,6 +469,7 @@ pub unsafe extern "C" fn strrchr(_s: *const (), _c: u32) -> *const u8 {
469469
}
470470

471471
#[no_mangle]
472+
#[linkage = "weak"]
472473
pub unsafe extern "C" fn floor(_v: f64) -> f64 {
473474
todo!("floor")
474475
}

esp-wifi/src/lib.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#![no_std]
22
#![cfg_attr(target_arch = "xtensa", feature(asm_experimental_arch))]
33
#![feature(c_variadic)]
4+
#![feature(linkage)]
45
#![cfg_attr(feature = "async", feature(async_fn_in_trait))]
56
#![cfg_attr(feature = "async", allow(incomplete_features))]
67

0 commit comments

Comments
 (0)