Merge branch 'verify-locale-includes' into 'master'
verify locale header includes See merge request redox-os/relibc!957
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user