Fix use_c_shim_if

master
Alex Crichton 2017-06-23 07:54:31 -07:00
parent 47ff81325c
commit 4c41b5649f
1 changed files with 2 additions and 2 deletions

View File

@ -15,7 +15,7 @@ macro_rules! intrinsics {
$($rest:tt)* $($rest:tt)*
) => ( ) => (
#[cfg(all(feature = "c", not($($cfg_clause)*)))] #[cfg(all(feature = "c", $($cfg_clause)*))]
$(#[$attr])* $(#[$attr])*
pub extern $abi fn $name( $($argname: $ty),* ) -> $ret { pub extern $abi fn $name( $($argname: $ty),* ) -> $ret {
extern $abi { extern $abi {
@ -26,7 +26,7 @@ macro_rules! intrinsics {
} }
} }
#[cfg(not(all(feature = "c", not($($cfg_clause)*))))] #[cfg(not(all(feature = "c", $($cfg_clause)*)))]
intrinsics! { intrinsics! {
$(#[$attr])* $(#[$attr])*
pub extern $abi fn $name( $($argname: $ty),* ) -> $ret { pub extern $abi fn $name( $($argname: $ty),* ) -> $ret {