Skip to content

Commit 6de6be7

Browse files
committed
Revert "Remove unneeded weak for optimized-c function"
This reverts commit 16c9ca9.
1 parent d2d7b33 commit 6de6be7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/macros.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,7 @@ macro_rules! intrinsics {
150150
$($rest:tt)*
151151
) => (
152152
#[cfg($name = "optimized-c")]
153+
#[cfg_attr(all(not(windows), not(target_vendor = "apple")), linkage = "weak")]
153154
pub $(unsafe $($empty)? )? extern $abi fn $name( $($argname: $ty),* ) $(-> $ret)? {
154155
extern $abi {
155156
fn $name($($argname: $ty),*) $(-> $ret)?;

0 commit comments

Comments
 (0)