diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2020-05-30 10:22:35 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2020-05-30 10:22:35 +0200 |
commit | 58260af4d8afd2079a50f2444e8bf721044d7a35 (patch) | |
tree | f782301352c868aae86b21b6211140df23c0dcb3 /safe_libc/src | |
parent | 554275d78187657f2ff7099f8cffe66aa48289fd (diff) | |
download | neco-58260af4d8afd2079a50f2444e8bf721044d7a35.tar neco-58260af4d8afd2079a50f2444e8bf721044d7a35.zip |
Enable #[ffi_const]wip/rust
Diffstat (limited to 'safe_libc/src')
-rw-r--r-- | safe_libc/src/errno.rs | 2 | ||||
-rw-r--r-- | safe_libc/src/lib.rs | 2 |
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; |