Unified · Split
| @@ -290,7 +290,7 @@ redo: · 289 unmodified lines | |||
| 290 | tcc_error("no input files\n"); | 290 | tcc_error("no input files\n"); |
| 291 | 291 | ||
| 292 | if (s->output_type == TCC_OUTPUT_PREPROCESS) { | 292 | if (s->output_type == TCC_OUTPUT_PREPROCESS) { |
| 293 | if (s->outfile) { | 293 | if (s->outfile && 0!=strcmp("-",s->outfile)) { |
| 294 | ppfp = fopen(s->outfile, "w"); | 294 | ppfp = fopen(s->outfile, "w"); |
| 295 | if (!ppfp) | 295 | if (!ppfp) |
| 296 | tcc_error("could not write '%s'", s->outfile); | 296 | tcc_error("could not write '%s'", s->outfile); |