From 0e64c57e108611c4c527872dd73853f9713a34a7 Mon Sep 17 00:00:00 2001 From: apio Date: Fri, 14 Oct 2022 19:23:14 +0200 Subject: [PATCH] libc: Change __{stderr, stdout} to {stderr, stdout} --- libs/libc/include/stdio.h | 10 +++++----- libs/libc/src/file.cpp | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) 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" {