[WINDOWSNT]: Include io.h.
(main) [MSDOS]: Change conditional to DOS_NT.
#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
{
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
}
else
{
-#ifdef MSDOS
-#if __DJGPP__ >= 2
+#ifdef DOS_NT
+#if (__DJGPP__ >= 2) || (defined WINDOWSNT)
if (!isatty (fileno (fp)))
setmode (fileno (fp), O_BINARY);
#else