summaryrefslogtreecommitdiff
path: root/lib-src/make-docfile.c
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1994-11-01 05:23:42 +0000
committerRichard M. Stallman <rms@gnu.org>1994-11-01 05:23:42 +0000
commit5dba61e98050d1a08b4b6da551a4297bbfabdb07 (patch)
tree53fdbea7468f97c637e85a7b134fd121b1b58bbb /lib-src/make-docfile.c
parentdcf02fee999b875b5955ce8973eedb27e2e50d3c (diff)
downloademacs-5dba61e98050d1a08b4b6da551a4297bbfabdb07.tar.gz
(main) [WINDOWSNT]: Now sets _fmode and stdout to O_BINARY.
[WINDOWSNT]: Include the NT headers. (READ_TEXT, READ_BINARY): Test DOS_NT, not MS_DOS.
Diffstat (limited to 'lib-src/make-docfile.c')
-rw-r--r--lib-src/make-docfile.c19
1 files changed, 15 insertions, 4 deletions
diff --git a/lib-src/make-docfile.c b/lib-src/make-docfile.c
index cb500f0e6c2..fbcebde1440 100644
--- a/lib-src/make-docfile.c
+++ b/lib-src/make-docfile.c
@@ -35,14 +35,19 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
#ifdef MSDOS
#include <fcntl.h>
#endif /* MSDOS */
+#ifdef WINDOWSNT
+#include <stdlib.h>
+#include <fcntl.h>
+#include <direct.h>
+#endif /* WINDOWSNT */
-#ifdef MSDOS
+#ifdef DOS_NT
#define READ_TEXT "rt"
#define READ_BINARY "rb"
-#else /* not MSDOS */
+#else /* not DOS_NT */
#define READ_TEXT "r"
#define READ_BINARY "r"
-#endif /* not MSDOS */
+#endif /* not DOS_NT */
int scan_file ();
int scan_lisp_file ();
@@ -59,11 +64,17 @@ main (argc, argv)
int err_count = 0;
int first_infile;
+ /* Don't put CRs in the DOC file. */
#ifdef MSDOS
- _fmode = O_BINARY; /* all of files are treated as binary files */
+ _fmode = O_BINARY;
(stdout)->_flag &= ~_IOTEXT;
_setmode (fileno (stdout), O_BINARY);
#endif /* MSDOS */
+#ifdef WINDOWSNT
+ _fmode = O_BINARY;
+ _setmode (fileno (stdout), O_BINARY);
+#endif /* WINDOWSNT */
+
outfile = stdout;
/* If first two args are -o FILE, output to FILE. */