diff --git a/src/header/locale/cbindgen.toml b/src/header/locale/cbindgen.toml index edb2300b9c..e99e73db12 100644 --- a/src/header/locale/cbindgen.toml +++ b/src/header/locale/cbindgen.toml @@ -7,3 +7,6 @@ cpp_compat = true [enum] prefix_with_name = true + +[export] +include = ["locale_t"] diff --git a/src/header/locale/mod.rs b/src/header/locale/mod.rs index ba07c07ece..acc250f688 100644 --- a/src/header/locale/mod.rs +++ b/src/header/locale/mod.rs @@ -4,12 +4,15 @@ use core::ptr; -use crate::platform::types::{c_char, c_int}; +use crate::platform::types::{c_char, c_int, c_void}; const EMPTY_PTR: *const c_char = "\0" as *const _ as *const c_char; // Can't use &str because of the mutability static mut C_LOCALE: [c_char; 2] = [b'C' as c_char, 0]; +//TODO: locale_t internals +pub type locale_t = *mut c_void; + /// See . #[repr(C)] pub struct lconv {