From 5be888a2bdc57144c27e78dc1e24f0987e04e0ef Mon Sep 17 00:00:00 2001 From: Stephen Heumann Date: Sat, 15 Oct 2022 17:10:59 -0500 Subject: [PATCH] Make stdin/stdout/stderr into macros. They are supposed to be macros, according to the C standards. This ordinarily doesn't matter, but it can be detected by #ifdef, as in the following program: #include #ifdef stdin int main(void) { puts("stdin is a macro"); } #endif --- ORCACDefs/stdio.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ORCACDefs/stdio.h b/ORCACDefs/stdio.h index 5115fa4..6b54627 100644 --- a/ORCACDefs/stdio.h +++ b/ORCACDefs/stdio.h @@ -85,6 +85,9 @@ typedef struct __file { extern FILE *stderr; /* standard I/O files */ extern FILE *stdin; extern FILE *stdout; +#define stderr stderr +#define stdin stdin +#define stdout stdout #define L_tmpnam 26 /* size of a temp name */ #define TMP_MAX 10000 /* # of unique temp names */