ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/px/mt160r.c
(Generate patch)

Comparing ray/src/px/mt160r.c (file contents):
Revision 2.6 by greg, Sat Feb 22 02:07:27 2003 UTC vs.
Revision 2.7 by schorsch, Thu Jun 5 19:29:34 2003 UTC

# Line 8 | Line 8 | static const char      RCSid[] = "$Id$";
8   */
9  
10   #include  <stdio.h>
11 #ifdef MSDOS
12 #include  <fcntl.h>
13 #endif
11   #include  <time.h>
12  
13 + #include  "platform.h"
14   #include  "color.h"
15   #include  "resolu.h"
16  
# Line 25 | Line 23 | char  *argv[];
23   {
24          int  i;
25          int  status = 0;
26 < #ifdef MSDOS
27 <        extern int  _fmode;
28 <        _fmode = O_BINARY;
31 <        setmode(fileno(stdin), O_BINARY);
32 <        setmode(fileno(stdout), O_BINARY);
33 < #endif
26 >        SET_DEFAULT_BINARY();
27 >        SET_FILE_BINARY(stdin);
28 >        SET_FILE_BINARY(stdout);
29          if (argc < 2)
30                  status += printp(NULL) == -1;
31          else

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines