Really fix setmode this time

Thanks to Khaled for spotting it.
pull/2/head
Behdad Esfahbod 12 years ago
parent 7cba8a673b
commit ceeae30f47
  1. 2
      util/options.cc

@ -558,7 +558,7 @@ output_options_t::get_file_handle (void)
fp = fopen (output_file, "wb");
else {
#ifdef HAVE_SETMODE
_setmode (fileno (stdout), _O_BINARY);
setmode (fileno (stdout), _O_BINARY);
#endif
fp = stdout;
}

Loading…
Cancel
Save