From afd9cad0c308f4b2cf3e3cf25babcecb60fdc586 Mon Sep 17 00:00:00 2001 From: auronandace Date: Tue, 31 Mar 2026 08:31:26 +0100 Subject: [PATCH] move stdlib bits to cbindgen --- include/bits/stdlib.h | 14 -------------- src/header/stdlib/cbindgen.toml | 4 +++- 2 files changed, 3 insertions(+), 15 deletions(-) delete mode 100644 include/bits/stdlib.h diff --git a/include/bits/stdlib.h b/include/bits/stdlib.h deleted file mode 100644 index 8d639cef38..0000000000 --- a/include/bits/stdlib.h +++ /dev/null @@ -1,14 +0,0 @@ -#ifndef _BITS_STDLIB_H -#define _BITS_STDLIB_H - -#ifdef __cplusplus -extern "C" { -#endif - -long double strtold(const char *nptr, char **endptr); - -#ifdef __cplusplus -} // extern "C" -#endif - -#endif /* _BITS_STDLIB_H */ diff --git a/src/header/stdlib/cbindgen.toml b/src/header/stdlib/cbindgen.toml index 6e8e15ec25..2e02e68a75 100644 --- a/src/header/stdlib/cbindgen.toml +++ b/src/header/stdlib/cbindgen.toml @@ -1,6 +1,8 @@ sys_includes = ["stddef.h", "alloca.h", "wchar.h", "features.h"] include_guard = "_RELIBC_STDLIB_H" -trailer = "#include " +trailer = """ +long double strtold(const char *nptr, char **endptr); +""" language = "C" style = "Type" no_includes = true