From bbb3e08647ca106f28f663ae7217b8d1a03e51d4 Mon Sep 17 00:00:00 2001 From: auronandace Date: Wed, 22 Apr 2026 09:56:16 +0100 Subject: [PATCH] add include guards for stdio bits in cbindgen --- src/header/stdio/cbindgen.toml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/header/stdio/cbindgen.toml b/src/header/stdio/cbindgen.toml index 540f3775b6..b161ee3d01 100644 --- a/src/header/stdio/cbindgen.toml +++ b/src/header/stdio/cbindgen.toml @@ -1,6 +1,9 @@ sys_includes = ["stdarg.h", "stddef.h", "stdint.h", "sys/types.h", "features.h"] include_guard = "_RELIBC_STDIO_H" trailer = """ +#ifndef _RELIBC_BITS_STDIO_H +#define _RELIBC_BITS_STDIO_H + // XXX: this is only here because cbindgen can't handle string constants #define P_tmpdir "/tmp" @@ -13,6 +16,8 @@ typedef struct FILE FILE; #define stdin stdin #define stdout stdout #define stderr stderr + +#endif // _RELIBC_BITS_STDIO_H """ language = "C" style = "Type"