sync thread_local key conditions exactly with what the macro uses
This commit is contained in:
parent
5854680388
commit
600ac6959a
4 changed files with 32 additions and 10 deletions
|
@ -17,6 +17,7 @@
|
|||
target_os = "redox",
|
||||
target_os = "emscripten"
|
||||
))]
|
||||
#[cfg_attr(target_family = "wasm", allow(unused))] // might remain unused depending on target details (e.g. wasm32-unknown-emscripten)
|
||||
pub unsafe fn register_dtor(t: *mut u8, dtor: unsafe extern "C" fn(*mut u8)) {
|
||||
use crate::mem;
|
||||
use crate::sys_common::thread_local_dtor::register_dtor_fallback;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue