Commit eac1956a authored by Richard M. Stallman's avatar Richard M. Stallman

[DOSNT]: Include fcntl.h.

[WINDOWSNT]: Include io.h.
(main) [MSDOS]: Change conditional to DOS_NT.
parent 7c544420
#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 @@ main (argc, argv)
{
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 @@ main (argc, argv)
}
else
{
#ifdef MSDOS
#if __DJGPP__ >= 2
#ifdef DOS_NT
#if (__DJGPP__ >= 2) || (defined WINDOWSNT)
if (!isatty (fileno (fp)))
setmode (fileno (fp), O_BINARY);
#else
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment