Skip to content

Commit

Permalink
Make standard streams all different; stdin == stdout is surprising
Browse files Browse the repository at this point in the history
  • Loading branch information
mysterymath committed May 22, 2024
1 parent 7fd1360 commit a28063f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mos-platform/common/c/stdio-minimal.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@

// These need to be non-null, but their contents otherwise doesn't matter.
__attribute__((weak)) FILE *stdin = (FILE *)1;
__attribute__((weak)) FILE *stdout = (FILE *)1;
__attribute__((weak)) FILE *stderr = (FILE *)1;
__attribute__((weak)) FILE *stdout = (FILE *)2;
__attribute__((weak)) FILE *stderr = (FILE *)3;

// Character input/output functions

Expand Down

0 comments on commit a28063f

Please sign in to comment.