Skip to content

Commit 457d654

Browse files
Aaron1011gnzlbg
andauthored
Fix feature name
Co-Authored-By: gnzlbg <[email protected]>
1 parent add284a commit 457d654

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
#![no_std]
3535
#![cfg_attr(feature = "rustc-dep-of-std", no_core)]
3636
#![cfg_attr(target_os = "redox", feature(static_nobundle))]
37-
#![cfg_attr(feature = "const-extern-fn", feature(const_extern_fn))]
37+
#![cfg_attr(libc_const_extern_fn, feature(const_extern_fn))]
3838

3939
#[macro_use]
4040
mod macros;

src/macros.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ macro_rules! s_no_extra_traits {
149149
// 2. Allow users of this macro to mix 'pub fn foo' and 'pub const fn bar' within the same
150150
// 'f!' block
151151
cfg_if! {
152-
if #[cfg(feature = "const-extern-fn")] {
152+
if #[cfg(libc_const_extern_fn)] {
153153
#[allow(unused_macros)]
154154
macro_rules! f {
155155
($(pub $({$constness:ident})* fn $i:ident(

0 commit comments

Comments
 (0)