cfg_if::cfg_if! {
if #[cfg(all(
target_os = "windows",
target_env = "msvc",
target_pointer_width = "64"
))] {
extern "C" {
pub fn __chkstk();
}
pub const PROBESTACK: unsafe extern "C" fn() = __chkstk;
} else if #[cfg(all(
target_os = "windows",
target_env = "msvc",
target_pointer_width = "32"
))] {
extern "C" {
pub fn _chkstk();
}
pub const PROBESTACK: unsafe extern "C" fn() = _chkstk;
} else if #[cfg(all(target_os = "windows", target_env = "gnu"))] {
extern "C" {
#[cfg(all(target_os = "windows", target_env = "gnu"))]
pub fn ___chkstk();
}
pub const PROBESTACK: unsafe extern "C" fn() = ___chkstk;
} else if #[cfg(not(any(target_arch = "x86_64", target_arch = "x86")))] {
extern "C" fn empty_probestack() {}
pub const PROBESTACK: unsafe extern "C" fn() = empty_probestack;
} else {
extern "C" {
pub fn __rust_probestack();
}
pub static PROBESTACK: unsafe extern "C" fn() = __rust_probestack;
}
}