From: Jason Rumney Date: Wed, 21 May 2003 20:46:24 +0000 (+0000) Subject: (main) [WINDOWSNT]: Move it here. X-Git-Tag: ttn-vms-21-2-B4~10048 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=edd3ff1dfc81fa2d1230a422851506bba9526a3b;p=emacs.git (main) [WINDOWSNT]: Move it here. --- diff --git a/src/ChangeLog b/src/ChangeLog index 2fcd1249d96..1a41ae88614 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,9 @@ +2003-05-21 Jason Rumney + + * unexw32.c (_start): Remove _fmode initialization. + + * emacs.c (main) [WINDOWSNT]: Move it here. + 2003-05-20 Dave Love * s/gnu-linux.h (MAIL_USE_FLOCK): Make it conditional. diff --git a/src/emacs.c b/src/emacs.c index 095ae9e7c78..05897e9bb44 100644 --- a/src/emacs.c +++ b/src/emacs.c @@ -40,6 +40,10 @@ Boston, MA 02111-1307, USA. */ #include #endif +#ifdef WINDOWSNT +#include +#endif + #include "lisp.h" #include "commands.h" #include "intervals.h" @@ -955,11 +959,13 @@ main (argc, argv uninterrupt_malloc (); #endif /* not SYSTEM_MALLOC */ -#ifdef MSDOS +#if defined (MSDOS) || defined (WINDOWSNT) /* We do all file input/output as binary files. When we need to translate newlines, we do that manually. */ _fmode = O_BINARY; +#endif /* MSDOS || WINDOWSNT */ +#ifdef MSDOS #if __DJGPP__ >= 2 if (!isatty (fileno (stdin))) setmode (fileno (stdin), O_BINARY);