summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2020-05-30 10:22:35 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2020-05-30 10:22:35 +0200
commit58260af4d8afd2079a50f2444e8bf721044d7a35 (patch)
treef782301352c868aae86b21b6211140df23c0dcb3
parent554275d78187657f2ff7099f8cffe66aa48289fd (diff)
downloadneco-wip/rust.tar
neco-wip/rust.zip
Enable #[ffi_const]wip/rust
-rw-r--r--safe_libc/src/errno.rs2
-rw-r--r--safe_libc/src/lib.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/safe_libc/src/errno.rs b/safe_libc/src/errno.rs
index 2a2220b..fdb1246 100644
--- a/safe_libc/src/errno.rs
+++ b/safe_libc/src/errno.rs
@@ -7,7 +7,7 @@ use core::fmt;
pub struct Errno(pub libc::c_int);
extern "C" {
- //#[ffi_const]
+ #[ffi_const]
pub fn __errno_location() -> *mut libc::c_int;
}
diff --git a/safe_libc/src/lib.rs b/safe_libc/src/lib.rs
index 9356406..cbc4071 100644
--- a/safe_libc/src/lib.rs
+++ b/safe_libc/src/lib.rs
@@ -1,7 +1,7 @@
#![no_std]
#![feature(extern_types)]
#![feature(slice_ptr_len)]
-// #![feature(ffi_const)]
+#![feature(ffi_const)]
extern crate alloc;