Skip to content

Commit

Permalink
Mark symbols as weak on Windows and Apple as well
Browse files Browse the repository at this point in the history
  • Loading branch information
ZequanWu committed Aug 5, 2024
1 parent e7341d5 commit 65bd111
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/macros.rs
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,7 @@ macro_rules! intrinsics {
mod $name {
$(#[$($attr)*])*
#[no_mangle]
#[cfg_attr(all(not(windows), not(target_vendor = "apple")), linkage = "weak")]
#[linkage = "weak"]
$(unsafe $($empty)?)? extern $abi fn $name( $($argname: $ty),* ) $(-> $ret)? {
super::$name($($argname),*)
}
Expand Down

0 comments on commit 65bd111

Please sign in to comment.