Skip to content

Commit

Permalink
Sigh. 'stdout' is not an lvalue on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
hackerb9 committed Jul 16, 2024
1 parent 7c95236 commit fbd19be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion m100-tokenize-main.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ int main(int argc, char *argv[]) {

/* Second arg (if any) is output file name */
++argv, --argc;
if (argc>0) stdout = freopen( argv[0], "wb+", stdout );
if (argc>0) freopen( argv[0], "wb+", stdout );
yyout = stdout;
if (yyout == NULL) { perror(argv[0]); exit(1); }

Expand Down

0 comments on commit fbd19be

Please sign in to comment.