diff --git a/src/header/inttypes/cbindgen.toml b/src/header/inttypes/cbindgen.toml index 568f0cd552..b8c2b7e93b 100644 --- a/src/header/inttypes/cbindgen.toml +++ b/src/header/inttypes/cbindgen.toml @@ -4,8 +4,10 @@ # - "The header shall include the header." # - "wchar_t As described in ." # -# wchar.h brings in both stdint.h and stddef.h -sys_includes = ["wchar.h"] +# Include stdint.h and stddef.h directly per POSIX spec. +# Do NOT include wchar.h — it creates a circular dependency: +# wchar.h → stdint.h → gnulib inttypes.h → inttypes.h → wchar.h +sys_includes = ["stdint.h", "stddef.h"] include_guard = "_RELIBC_INTTYPES_H" trailer = """ #ifndef _RELIBC_BITS_INTTYPES_H