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.6 by schorsch, Thu Jun 5 19:29:34 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 >
11 > #include  "platform.h"
12   #include  "color.h"
13  
14  
# Line 55 | Line 54 | char  *argv[];
54          COLR  *scan;
55          COLR  cmin, cmax;
56          int  xmin, ymin, xmax, ymax;
57 < #ifdef MSDOS
58 <        extern int  _fmode;
60 <        _fmode = O_BINARY;
61 <        setmode(fileno(stdin), O_BINARY);
62 < #endif
57 >        SET_DEFAULT_BINARY()
58 >        SET_FILE_BINARY(stdin);
59          for (i = 1; i < argc; i++)      /* get options */
60                  if (!strcmp(argv[i], "-o"))
61                          orig++;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines