Skip to content

Commit

Permalink
Fix macros attempt.
Browse files Browse the repository at this point in the history
  • Loading branch information
devnexen committed Jan 26, 2025
1 parent 0f9f8c9 commit 369df1c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/macros.rs
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ cfg_if! {
)*) => ($(
#[inline]
$(#[$attr])*
pub $($constness)* unsafe extern fn $i($($arg: $argty),*) -> $ret
pub $($constness)* unsafe extern "C" fn $i($($arg: $argty),*) -> $ret
$body
)*)
}
Expand All @@ -257,7 +257,7 @@ cfg_if! {
)*) => ($(
#[inline]
$(#[$attr])*
pub $($constness)* extern fn $i($($arg: $argty),*) -> $ret
pub $($constness)* extern "C" fn $i($($arg: $argty),*) -> $ret
$body
)*)
}
Expand Down Expand Up @@ -285,7 +285,7 @@ cfg_if! {
)*) => ($(
#[inline]
$(#[$attr])*
pub unsafe extern fn $i($($arg: $argty),*) -> $ret
pub unsafe extern "C" fn $i($($arg: $argty),*) -> $ret
$body
)*)
}
Expand All @@ -299,7 +299,7 @@ cfg_if! {
)*) => ($(
#[inline]
$(#[$attr])*
pub extern fn $i($($arg: $argty),*) -> $ret
pub extern "C" fn $i($($arg: $argty),*) -> $ret
$body
)*)
}
Expand Down

0 comments on commit 369df1c

Please sign in to comment.