This commit was generated by cvs2svn to compensate for changes in r5057,
[chise/xemacs-chise.git.1] / lib-src / b2m.c
index dda077d..b1941b1 100644 (file)
@@ -19,7 +19,7 @@
    by Francesco Potorti` <pot@cnuce.cnr.it>. */
 
 #ifdef HAVE_CONFIG_H
-#include <../src/config.h>
+#include <config.h>
 /* On some systems, Emacs defines static as nothing for the sake
    of unexec.  We don't want that here since we don't use unexec. */
 #undef static
@@ -30,7 +30,7 @@
 #include <string.h>
 #include <time.h>
 #include <sys/types.h>
-#ifdef MSDOS
+#ifdef WIN32_NATIVE
 #include <fcntl.h>
 #endif
 
@@ -88,17 +88,12 @@ main (int argc, char *argv[])
   char *labels = NULL, *p, *today;
   struct linebuffer data;
 
-#ifdef MSDOS
+#ifdef WIN32_NATIVE
   _fmode = O_BINARY;           /* all of files are treated as binary files */
-#if __DJGPP__ > 1
   if (!isatty (fileno (stdout)))
     setmode (fileno (stdout), O_BINARY);
   if (!isatty (fileno (stdin)))
     setmode (fileno (stdin), O_BINARY);
-#else /* not __DJGPP__ > 1 */
-  (stdout)->_flag &= ~_IOTEXT;
-  (stdin)->_flag &= ~_IOTEXT;
-#endif /* not __DJGPP__ > 1 */
 #endif
   progname = argv[0];