Mercurial > hg > xemacs-beta
diff lib-src/b2m.c @ 410:de805c49cfc1 r21-2-35
Import from CVS: tag r21-2-35
author | cvs |
---|---|
date | Mon, 13 Aug 2007 11:19:21 +0200 |
parents | 74fd4e045ea6 |
children | 697ef44129c6 |
line wrap: on
line diff
--- a/lib-src/b2m.c Mon Aug 13 11:18:12 2007 +0200 +++ b/lib-src/b2m.c Mon Aug 13 11:19:21 2007 +0200 @@ -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 @@ 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];