diff src/emacs.c @ 51125:9f5266505a66

(main) [WINDOWSNT]: Move it here.
author Jason Rumney <jasonr@gnu.org>
date Wed, 21 May 2003 20:43:38 +0000
parents 2c04067bcdc0
children 695cf19ef79e
line wrap: on
line diff
--- 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 <sys/ioctl.h>
 #endif
 
+#ifdef WINDOWSNT
+#include <fcntl.h>
+#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);