changeset 51125:9f5266505a66

(main) [WINDOWSNT]: Move it here.
author Jason Rumney <jasonr@gnu.org>
date Wed, 21 May 2003 20:43:38 +0000
parents ec1e9e347981
children 46f9e88b6cf2
files src/emacs.c
diffstat 1 files changed, 7 insertions(+), 1 deletions(-) [+]
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);