Skip to content

Commit

Permalink
Remove unneeded weak for optimized-c function
Browse files Browse the repository at this point in the history
`weak` is only used with `no_mangle`
  • Loading branch information
Amjad50 authored and Amanieu committed May 3, 2024
1 parent 7f9c937 commit 16c9ca9
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/macros.rs
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,6 @@ macro_rules! intrinsics {
$($rest:tt)*
) => (
#[cfg($name = "optimized-c")]
#[cfg_attr(all(not(windows), not(target_vendor = "apple")), linkage = "weak")]
pub $(unsafe $($empty)? )? extern $abi fn $name( $($argname: $ty),* ) $(-> $ret)? {
extern $abi {
fn $name($($argname: $ty),*) $(-> $ret)?;
Expand Down

0 comments on commit 16c9ca9

Please sign in to comment.