12 lines
178 B
C++
12 lines
178 B
C++
|
#include <stdio.h>
|
||
|
#include <unistd.h>
|
||
|
|
||
|
extern "C"
|
||
|
{
|
||
|
void libc_init()
|
||
|
{
|
||
|
stdout = fdopen(STDOUT_FILENO, "w");
|
||
|
stderr = fdopen(STDERR_FILENO, "w");
|
||
|
}
|
||
|
}
|