Commit edd3ff1d authored by Jason Rumney's avatar Jason Rumney

(main) [WINDOWSNT]: Move it here.

parent 745edc31
2003-05-21 Jason Rumney <jasonr@gnu.org>
* unexw32.c (_start): Remove _fmode initialization.
* emacs.c (main) [WINDOWSNT]: Move it here.
2003-05-20 Dave Love <fx@gnu.org>
* s/gnu-linux.h (MAIL_USE_FLOCK): Make it conditional.
......
......@@ -40,6 +40,10 @@ Boston, MA 02111-1307, USA. */
#include <sys/ioctl.h>
#endif
#ifdef WINDOWSNT
#include <fcntl.h>
#endif
#include "lisp.h"
#include "commands.h"
#include "intervals.h"
......@@ -955,11 +959,13 @@ main (argc, argv
uninterrupt_malloc ();
#endif /* not SYSTEM_MALLOC */
#ifdef MSDOS
#if defined (MSDOS) || defined (WINDOWSNT)
/* We do all file input/output as binary files. When we need to translate
newlines, we do that manually. */
_fmode = O_BINARY;
#endif /* MSDOS || WINDOWSNT */
#ifdef MSDOS
#if __DJGPP__ >= 2
if (!isatty (fileno (stdin)))
setmode (fileno (stdin), O_BINARY);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment