From 58260af4d8afd2079a50f2444e8bf721044d7a35 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Sat, 30 May 2020 10:22:35 +0200 Subject: Enable #[ffi_const] --- safe_libc/src/errno.rs | 2 +- safe_libc/src/lib.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'safe_libc') 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; -- cgit v1.2.3