Changeset 4098 for trunk/lib-src/sorted-doc.c
- Timestamp:
- 07/01/06 08:27:06 (2 years ago)
- Files:
-
- trunk/lib-src/sorted-doc.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/lib-src/sorted-doc.c
r4073 r4098 30 30 #include <stdio.h> 31 31 #include <ctype.h> 32 #ifdef DOS_NT 33 #include <fcntl.h> /* for O_BINARY */ 34 #include <io.h> /* for setmode */ 35 #endif 32 36 #ifndef HAVE_STDLIB_H /* config.h includes stdlib. */ 37 #ifndef WINDOWSNT /* src/s/ms-w32.h includes stdlib.h */ 33 38 extern char *malloc (); 39 #endif 34 40 #endif 35 41 … … 134 140 DOCSTR *docs = NULL; /* chain of allocated DOCSTRS */ 135 141 char buf[512]; /* line buffer */ 142 143 #ifdef DOS_NT 144 /* DOC is a binary file. */ 145 if (!isatty (fileno (stdin))) 146 setmode (fileno (stdin), O_BINARY); 147 #endif 148 149 bp = buf; 136 150 137 151 while (1) /* process one char at a time */
