(main,ef_open) [_WIN32]: switch the default file mode to
binary to match POSIX. Remove the now unneccessary ifdef for the open.
This commit is contained in:
parent
c3ac61e1e4
commit
f6e78f4589
1 changed files with 4 additions and 0 deletions
|
@ -88,6 +88,10 @@ main(int argc, char *argv[])
|
|||
char *config_file = NULL;
|
||||
int force = 0;
|
||||
|
||||
#if defined(_WIN32)
|
||||
_fmode = _O_BINARY;
|
||||
#endif
|
||||
|
||||
while ((opt = getopt(argc, argv, "e:f")) != EOF) {
|
||||
switch (opt) {
|
||||
case 'e':
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue