Merge branch 'verify-locale-includes' into 'master'

verify locale header includes

See merge request redox-os/relibc!957
This commit is contained in:
Jeremy Soller
2026-02-05 06:30:38 -07:00
2 changed files with 5 additions and 1 deletions
+5
View File
@@ -1,3 +1,8 @@
# POSIX header spec: https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/locale.h.html
#
# Spec quotations relating to includes:
# - "The <locale.h> header shall define NULL (as described in <stddef.h>) and at least the following as macros:"
sys_includes = ["stddef.h"]
include_guard = "_RELIBC_LOCALE_H"
after_includes = """
#include <bits/locale-t.h> // for locale_t
-1
View File
@@ -15,7 +15,6 @@ use crate::{
sync::Once,
};
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];