Treat the - output as stdout.

This commit is contained in:
Petr Skocik 2018-11-12 15:09:26 +01:00
parent 3b9c3fd186
commit 93a4ddfa63

2
tcc.c
View File

@ -290,7 +290,7 @@ redo:
tcc_error("no input files\n");
if (s->output_type == TCC_OUTPUT_PREPROCESS) {
if (s->outfile) {
if (s->outfile && 0!=strcmp("-",s->outfile)) {
ppfp = fopen(s->outfile, "w");
if (!ppfp)
tcc_error("could not write '%s'", s->outfile);