Index: emacs.c =================================================================== RCS file: /cvsroot/emacs/emacs/src/emacs.c,v retrieving revision 1.325 diff -c -p -r1.325 emacs.c *** emacs.c 18 Dec 2002 06:16:28 -0000 1.325 --- emacs.c 20 Mar 2003 16:17:36 -0000 *************** Boston, MA 02111-1307, USA. */ *** 40,45 **** --- 40,49 ---- #include #endif + #ifdef WINDOWSNT + #include + #endif + #include "lisp.h" #include "commands.h" #include "intervals.h" *************** main (argc, argv *** 954,964 **** uninterrupt_malloc (); #endif /* not SYSTEM_MALLOC */ ! #ifdef MSDOS /* We do all file input/output as binary files. When we need to translate newlines, we do that manually. */ _fmode = O_BINARY; #if __DJGPP__ >= 2 if (!isatty (fileno (stdin))) setmode (fileno (stdin), O_BINARY); --- 958,970 ---- uninterrupt_malloc (); #endif /* not SYSTEM_MALLOC */ ! #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); Index: unexw32.c =================================================================== RCS file: /cvsroot/emacs/emacs/src/unexw32.c,v retrieving revision 1.22 diff -c -p -r1.22 unexw32.c *** unexw32.c 4 Feb 2003 14:03:13 -0000 1.22 --- unexw32.c 20 Mar 2003 16:17:50 -0000 *************** Boston, MA 02111-1307, USA. *** 23,29 **** #include - #include /* _fmode */ #include #include #include --- 23,28 ---- *************** _start (void) *** 111,120 **** /* Grab our malloc arena space now, before CRT starts up. */ init_heap (); - - /* The default behavior is to treat files as binary and patch up - text files appropriately, in accordance with the MSDOS code. */ - _fmode = O_BINARY; /* This prevents ctrl-c's in shells running while we're suspended from having us exit. */ --- 110,115 ----