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

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

# Line 6 | Line 6 | static const char      RCSid[] = "$Id$";
6   */
7  
8   #include  <stdio.h>
9 #ifdef MSDOS
10 #include  <fcntl.h>
11 #endif
9   #include  <time.h>
10  
11 + #include  "platform.h"
12   #include  "color.h"
13   #include  "resolu.h"
14  
# Line 39 | Line 37 | int  argc;
37   char  *argv[];
38   {
39          int  i, status = 0;
40 < #ifdef MSDOS
41 <        extern int  _fmode;
42 <        _fmode = O_BINARY;
45 <        setmode(fileno(stdin), O_BINARY);
46 <        setmode(fileno(stdout), O_BINARY);
47 < #endif
40 >        SET_DEFAULT_BINARY();
41 >        SET_FILE_BINARY(stdin);
42 >        SET_FILE_BINARY(stdout);
43          if (argc > 1 && !strcmp(argv[1], "-p")) {
44                  dofilter++;
45                  argv++; argc--;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines