LibC: Make libc usable with tcc

tcc does not provide its own stdint.h but defines everything in
stddef.h. Also tcc does not support [[noreturn]] attribute syntax.
This commit is contained in:
Bananymous 2025-01-28 17:24:25 +02:00
parent 21d3cf91a0
commit 48eca3d031
2 changed files with 7 additions and 1 deletions

View File

@ -13,7 +13,8 @@
__BEGIN_DECLS
[[noreturn]] void __assert_fail(const char*, const char*, int, const char*);
__attribute__((noreturn))
void __assert_fail(const char*, const char*, int, const char*);
__END_DECLS

View File

@ -0,0 +1,5 @@
#ifdef __TINYC__
#include <stddef.h>
#else
#include_next <stdint.h>
#endif