summaryrefslogtreecommitdiff
path: root/tcctools.c
diff options
context:
space:
mode:
Diffstat (limited to 'tcctools.c')
-rw-r--r--tcctools.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tcctools.c b/tcctools.c
index 53d88be..1d4424e 100644
--- a/tcctools.c
+++ b/tcctools.c
@@ -374,7 +374,7 @@ usage:
if (v)
printf("-> %s\n", file);
- op = fopen(outfile, "w");
+ op = fopen(outfile, "wb");
if (NULL == op) {
fprintf(stderr, "tcc: impdef: could not create output file: %s\n", outfile);
goto the_end;