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

Comparing ray/src/px/pextrem.c (file contents):
Revision 2.5 by greg, Sat Feb 22 02:07:27 2003 UTC vs.
Revision 2.8 by schorsch, Thu Jul 3 22:41:44 2003 UTC

# Line 7 | Line 7 | static const char      RCSid[] = "$Id$";
7  
8   #include  <stdio.h>
9   #include  <math.h>
10 < #ifdef MSDOS
11 < #include  <fcntl.h>
12 < #endif
10 > #include  <string.h>
11 >
12 > #include  "platform.h"
13   #include  "color.h"
14  
15  
# Line 55 | Line 55 | char  *argv[];
55          COLR  *scan;
56          COLR  cmin, cmax;
57          int  xmin, ymin, xmax, ymax;
58 < #ifdef MSDOS
59 <        extern int  _fmode;
60 <        _fmode = O_BINARY;
61 <        setmode(fileno(stdin), O_BINARY);
62 < #endif
58 >        SET_DEFAULT_BINARY();
59 >        SET_FILE_BINARY(stdin);
60          for (i = 1; i < argc; i++)      /* get options */
61                  if (!strcmp(argv[i], "-o"))
62                          orig++;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines