forked from Bananymous/banan-os
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:
@@ -13,7 +13,8 @@
|
|||||||
|
|
||||||
__BEGIN_DECLS
|
__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
|
__END_DECLS
|
||||||
|
|
||||||
|
|||||||
5
userspace/libraries/LibC/include/stdint.h
Normal file
5
userspace/libraries/LibC/include/stdint.h
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
#ifdef __TINYC__
|
||||||
|
#include <stddef.h>
|
||||||
|
#else
|
||||||
|
#include_next <stdint.h>
|
||||||
|
#endif
|
||||||
Reference in New Issue
Block a user