Skip to content

Commit ec76819

Browse files
committed
Always use extern "system" for Windows imports
1 parent f2bcf65 commit ec76819

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

src/dbghelp.rs

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -77,17 +77,6 @@ macro_rules! dbghelp {
7777
// either read the cached function pointer or load it and return the
7878
// loaded value. Loads are asserted to succeed.
7979
$(pub fn $name(&mut self) -> Option<$name> {
80-
// Assert that windows_sys::$name is declared to have the same
81-
// argument types and return type as our declaration, although
82-
// it might be either extern "C" or extern "system".
83-
cfg_if::cfg_if! {
84-
if #[cfg(any(target_arch = "x86", not(windows_raw_dylib)))] {
85-
let _: unsafe extern "system" fn($($argty),*) -> $ret = super::windows_sys::$name;
86-
} else {
87-
let _: unsafe extern "C" fn($($argty),*) -> $ret = super::windows_sys::$name;
88-
}
89-
}
90-
9180
unsafe {
9281
if self.$name == 0 {
9382
let name = concat!(stringify!($name), "\0");

0 commit comments

Comments
 (0)