# HG changeset patch # User Jason Rumney # Date 1053549818 0 # Node ID 9f5266505a66a5b0cb9d9998fe82485d75b981d5 # Parent ec1e9e347981e3a737b99e9d2b6f9a5aaf6cce92 (main) [WINDOWSNT]: Move it here. diff -r ec1e9e347981 -r 9f5266505a66 src/emacs.c --- a/src/emacs.c Wed May 21 20:43:00 2003 +0000 +++ b/src/emacs.c Wed May 21 20:43:38 2003 +0000 @@ -40,6 +40,10 @@ #include #endif +#ifdef WINDOWSNT +#include +#endif + #include "lisp.h" #include "commands.h" #include "intervals.h" @@ -955,11 +959,13 @@ 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);