Enable #[ffi_const]
This commit is contained in:
parent
554275d781
commit
58260af4d8
2 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#![no_std]
|
||||
#![feature(extern_types)]
|
||||
#![feature(slice_ptr_len)]
|
||||
// #![feature(ffi_const)]
|
||||
#![feature(ffi_const)]
|
||||
|
||||
extern crate alloc;
|
||||
|
||||
|
|
Reference in a new issue