Treat the - output as stdout.
This commit is contained in:
parent
3b9c3fd186
commit
93a4ddfa63
1 changed files with 1 additions and 1 deletions
2
tcc.c
2
tcc.c
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue