mirror of
https://github.com/RGBCube/serenity
synced 2025-07-24 22:17:42 +00:00
LibC: Make it possible to use ASSERTs without initializing stdio
This commit is contained in:
parent
b1c1d7661f
commit
65ee2f07b7
4 changed files with 7 additions and 1 deletions
|
@ -585,6 +585,7 @@ void __stdio_init()
|
|||
new (stdout) FILE(1, O_WRONLY);
|
||||
new (stderr) FILE(2, O_WRONLY);
|
||||
stderr->setbuf(nullptr, _IONBF, 0);
|
||||
__stdio_is_initialized = true;
|
||||
}
|
||||
|
||||
int setvbuf(FILE* stream, char* buf, int mode, size_t size)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue