Show
Ignore:
Timestamp:
07/01/06 08:27:06 (2 years ago)
Author:
miyoshi
Message:

Sync up with Emacs CVS HEAD.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/lib-src/sorted-doc.c

    r4073 r4098  
    3030#include <stdio.h> 
    3131#include <ctype.h> 
     32#ifdef DOS_NT 
     33#include <fcntl.h>              /* for O_BINARY */ 
     34#include <io.h>                 /* for setmode */ 
     35#endif 
    3236#ifndef HAVE_STDLIB_H           /* config.h includes stdlib.  */ 
     37#ifndef WINDOWSNT               /* src/s/ms-w32.h includes stdlib.h */ 
    3338extern char *malloc (); 
     39#endif 
    3440#endif 
    3541 
     
    134140  DOCSTR *docs = NULL;          /* chain of allocated DOCSTRS */ 
    135141  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; 
    136150 
    137151  while (1)                     /* process one char at a time */