From f6e78f458905fa0bfb929e9e73eeb2045ff54dd8 Mon Sep 17 00:00:00 2001 From: Ron Koenderink Date: Wed, 29 Dec 2004 23:40:04 +0000 Subject: [PATCH] (main,ef_open) [_WIN32]: switch the default file mode to binary to match POSIX. Remove the now unneccessary ifdef for the open. --- src/util/files.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/util/files.c b/src/util/files.c index 6acee2fb..f0ad84fe 100644 --- a/src/util/files.c +++ b/src/util/files.c @@ -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':