From 457d65439610ae70b38e05ac83dde1419670727a Mon Sep 17 00:00:00 2001
From: Aaron Hill <aa1ronham@gmail.com>
Date: Mon, 28 Oct 2019 20:14:12 -0400
Subject: [PATCH] Fix feature name

Co-Authored-By: gnzlbg <gnzlbg@users.noreply.github.com>
---
 src/lib.rs    | 2 +-
 src/macros.rs | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/lib.rs b/src/lib.rs
index 40625ac9..0b1496af 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 da392706..f14bbf55 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(
-- 
GitLab