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);
|
pub struct Errno(pub libc::c_int);
|
||||||
|
|
||||||
extern "C" {
|
extern "C" {
|
||||||
//#[ffi_const]
|
#[ffi_const]
|
||||||
pub fn __errno_location() -> *mut libc::c_int;
|
pub fn __errno_location() -> *mut libc::c_int;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#![no_std]
|
#![no_std]
|
||||||
#![feature(extern_types)]
|
#![feature(extern_types)]
|
||||||
#![feature(slice_ptr_len)]
|
#![feature(slice_ptr_len)]
|
||||||
// #![feature(ffi_const)]
|
#![feature(ffi_const)]
|
||||||
|
|
||||||
extern crate alloc;
|
extern crate alloc;
|
||||||
|
|
||||||
|
|
Reference in a new issue