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