verify strings header includes

This commit is contained in:
auronandace
2026-04-22 11:40:16 +01:00
parent b7989acb58
commit bf7e77b836
+14 -1
View File
@@ -1,9 +1,22 @@
sys_includes = ["features.h", "stddef.h", "stdint.h"]
# POSIX header spec: https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/strings.h.html
#
# Spec quotations relating to includes:
# - "The <strings.h> header shall define the locale_t type as described in <locale.h>."
# - "The <strings.h> header shall define the size_t type as described in <sys/types.h>."
#
# sys/types.h gets size_t from stddef.h (just include stddef.h here instead of importing all of sys/types.h)
# features.h required for deprecated annotations
sys_includes = ["features.h", "stddef.h"]
include_guard = "_RELIBC_STRINGS_H"
after_includes = """
#include <bits/locale-t.h> // for locale_t from locale.h
"""
language = "C"
style = "Tag"
no_includes = true
cpp_compat = true
# make size_t actually size_t instead of uintptr_t (which would require stdint.h)
usize_is_size_t = true
[enum]
prefix_with_name = true