Red Bear OS
826a984fdb
relibc: move stddef header from C to cbindgen (integrate upstream 3be84f4b)
...
Cherry-pick upstream commit 3be84f4b (auronandace, 2026-06-24):
- Delete hand-written include/stddef.h
- Create src/header/stddef/ with cbindgen.toml + mod.rs
- Create src/header/bits_wchar-t/ with cbindgen.toml + mod.rs
- Create src/header/bits_size-t/ with cbindgen.toml + mod.rs
- Create src/header/bits_null/ with cbindgen.toml + mod.rs
- Update src/header/mod.rs: add bits_* modules, uncomment stddef
The generated stddef.h now includes modular bits_* sub-headers:
#include <bits/wchar-t.h> — wchar_t with _WCHAR_T guard + __WCHAR_TYPE__
#include <bits/size-t.h> — size_t from Rust usize via cbindgen [export]
#include <bits/null.h> — NULL: nullptr (C++11), 0L (C++), (void*)0 (C)
This fixes the wchar_t circular include issue structurally.
2026-06-29 01:28:57 +03:00