Mercurial > hg > xemacs-beta
diff lib-src/b2m.c @ 442:abe6d1db359e r21-2-36
Import from CVS: tag r21-2-36
author | cvs |
---|---|
date | Mon, 13 Aug 2007 11:35:02 +0200 |
parents | 84b14dcb0985 |
children | 061f4f90f874 |
line wrap: on
line diff
--- a/lib-src/b2m.c Mon Aug 13 11:33:40 2007 +0200 +++ b/lib-src/b2m.c Mon Aug 13 11:35:02 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];