mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-04-27 16:51:06 -07:00
[DOS_NT] <top level>: Include fcntl.h and io.h.
(main) [DOS_NT]: Switch stdin to binary mode, if it is not a terminal device.
This commit is contained in:
parent
37c49f02a0
commit
1b178b9902
2 changed files with 16 additions and 0 deletions
|
|
@ -1,9 +1,14 @@
|
|||
2006-06-03 Eli Zaretskii <eliz@gnu.org>
|
||||
|
||||
* digest-doc.c [DOS_NT] <top level>: Include fcntl.h and io.h.
|
||||
(main) [DOS_NT]: Switch stdin to binary mode, if it is not a
|
||||
terminal device.
|
||||
|
||||
* sorted-doc.c [DOS_NT] <top level>: Include fcntl.h and io.h.
|
||||
[WINDOWSNT] <top level>: Don't redeclare malloc.
|
||||
(main) [DOS_NT]: Switch stdin to binary mode, if it is not a
|
||||
terminal device.
|
||||
(main): Initialize bp, to avoid compiler warnings
|
||||
|
||||
* makefile.w32-in: Delete traces of leditcfns.c.
|
||||
|
||||
|
|
|
|||
|
|
@ -26,12 +26,23 @@
|
|||
|
||||
#include <stdio.h>
|
||||
|
||||
#ifdef DOS_NT
|
||||
#include <fcntl.h> /* for O_BINARY */
|
||||
#include <io.h> /* for setmode */
|
||||
#endif
|
||||
|
||||
int
|
||||
main ()
|
||||
{
|
||||
register int ch;
|
||||
register int notfirst = 0;
|
||||
|
||||
#ifdef DOS_NT
|
||||
/* DOC is a binary file. */
|
||||
if (!isatty (fileno (stdin)))
|
||||
setmode (fileno (stdin), O_BINARY);
|
||||
#endif
|
||||
|
||||
printf (".TL\n");
|
||||
printf ("Command Summary for GNU Emacs\n");
|
||||
printf (".AU\nRichard M. Stallman\n");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue