diff --git a/libs/libc/include/stdio.h b/libs/libc/include/stdio.h index 2145336a..abed2254 100644 --- a/libs/libc/include/stdio.h +++ b/libs/libc/include/stdio.h @@ -13,16 +13,16 @@ typedef struct int f_err; } FILE; +extern FILE* stderr; +extern FILE* stdout; +#define stdout stdout +#define stderr stderr + typedef struct { long f_offset; } fpos_t; -extern FILE* __stderr; // The standard error stream. -extern FILE* __stdout; // The standard output stream. -#define stderr __stderr -#define stdout __stdout - #ifdef __cplusplus extern "C" { diff --git a/libs/libc/src/file.cpp b/libs/libc/src/file.cpp index e603f121..206d4f5d 100644 --- a/libs/libc/src/file.cpp +++ b/libs/libc/src/file.cpp @@ -5,8 +5,8 @@ #include #include -FILE* __stderr; -FILE* __stdout; +FILE* stderr; +FILE* stdout; extern "C" {