summaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
authorAaron Hill <aa1ronham@gmail.com>2019-09-30 16:02:01 -0400
committerAaron Hill <aa1ronham@gmail.com>2019-10-27 20:59:38 -0400
commit5dfc2c82854eede618f35c4511e941506f0e76d0 (patch)
treecfce2e74639a01d259e450108a32f4849b28762f /src/lib.rs
parent53bdffc028632907958bbd03ff88182b2b20a6cc (diff)
downloadrust-libc-5dfc2c82854eede618f35c4511e941506f0e76d0.tar.gz
Add support for declaring 'const fn'
Add a new feature to enable this, since `const extern fn` support is unstable
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 3255303e5a..40625ac98d 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -34,6 +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))]
#[macro_use]
mod macros;