changeset 15100:85edb1a5281a

[DOSNT]: Include fcntl.h. [WINDOWSNT]: Include io.h. (main) [MSDOS]: Change conditional to DOS_NT.
author Richard M. Stallman <rms@gnu.org>
date Sun, 28 Apr 1996 19:06:15 +0000
parents 857388330750
children f86169152e74
files lib-src/hexl.c
diffstat 1 files changed, 8 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/lib-src/hexl.c	Sun Apr 28 19:06:01 1996 +0000
+++ b/lib-src/hexl.c	Sun Apr 28 19:06:15 1996 +0000
@@ -1,11 +1,14 @@
 #include <stdio.h>
 #include <ctype.h>
-#ifdef MSDOS
+#ifdef DOS_NT
 #include <fcntl.h>
 #if __DJGPP__ >= 2
 #include <io.h>
 #endif
 #endif
+#ifdef WINDOWSNT
+#include <io.h>
+#endif
 
 #define DEFAULT_GROUPING	0x01
 #define DEFAULT_BASE		16
@@ -136,8 +139,8 @@
 	{
 	  char buf[18];
 
-#ifdef MSDOS
-#if __DJGPP__ >= 2
+#ifdef DOS_NT
+#if (__DJGPP__ >= 2) || (defined WINDOWSNT)
           if (!isatty (fileno (stdout)))
 	    setmode (fileno (stdout), O_BINARY);
 #else
@@ -185,8 +188,8 @@
 	}
       else
 	{
-#ifdef MSDOS
-#if __DJGPP__ >= 2
+#ifdef DOS_NT
+#if (__DJGPP__ >= 2) || (defined WINDOWSNT)
           if (!isatty (fileno (fp)))
 	    setmode (fileno (fp), O_BINARY);
 #else