From 4c41b5649f6848b95b662741c0650af2e5648666 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Fri, 23 Jun 2017 07:54:31 -0700 Subject: [PATCH] Fix use_c_shim_if --- src/macros.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/macros.rs b/src/macros.rs index 70e44da..740eae2 100644 --- a/src/macros.rs +++ b/src/macros.rs @@ -15,7 +15,7 @@ macro_rules! intrinsics { $($rest:tt)* ) => ( - #[cfg(all(feature = "c", not($($cfg_clause)*)))] + #[cfg(all(feature = "c", $($cfg_clause)*))] $(#[$attr])* pub extern $abi fn $name( $($argname: $ty),* ) -> $ret { 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! { $(#[$attr])* pub extern $abi fn $name( $($argname: $ty),* ) -> $ret {