]> code.delx.au - gnu-emacs/blobdiff - lib-src/hexl.c
(mouse-drag-region): Ignore event end-point if it is not a number.
[gnu-emacs] / lib-src / hexl.c
index beb170613dda6cf705b7c3fd15ebe644a9e53e42..9731321d4ae2908accc5a12db0ae7c83179bf950 100644 (file)
@@ -1,11 +1,18 @@
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 #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 +143,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 +192,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