diff --git a/src/lib.rs b/src/lib.rs index 40625ac98dc6932cd89a1b614242dd42ef3e783f..0b1496af1d6c0725fa04026beda73c7f7631331c 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -34,7 +34,7 @@ #![no_std] #![cfg_attr(feature = "rustc-dep-of-std", no_core)] #![cfg_attr(target_os = "redox", feature(static_nobundle))] -#![cfg_attr(feature = "const-extern-fn", feature(const_extern_fn))] +#![cfg_attr(libc_const_extern_fn, feature(const_extern_fn))] #[macro_use] mod macros; diff --git a/src/macros.rs b/src/macros.rs index da39270633274660c344a0a95e29615e9b1e7a88..f14bbf5522137b268feefd88b93e0f5733b5da58 100644 --- a/src/macros.rs +++ b/src/macros.rs @@ -149,7 +149,7 @@ macro_rules! s_no_extra_traits { // 2. Allow users of this macro to mix 'pub fn foo' and 'pub const fn bar' within the same // 'f!' block cfg_if! { - if #[cfg(feature = "const-extern-fn")] { + if #[cfg(libc_const_extern_fn)] { #[allow(unused_macros)] macro_rules! f { ($(pub $({$constness:ident})* fn $i:ident(