From c45d06e747c20a44722ed3b1f49edebaa4f4a6c8 Mon Sep 17 00:00:00 2001 From: Jeremy Soller Date: Fri, 19 Dec 2025 12:55:55 -0700 Subject: [PATCH] Add locale_t --- src/header/locale/cbindgen.toml | 3 +++ src/header/locale/mod.rs | 5 ++++- 2 files changed, 7 insertions(+), 1 deletion(-) 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 {