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

Comparing ray/src/px/ra_bn.c (file contents):
Revision 2.7 by greg, Sat Feb 22 02:07:27 2003 UTC vs.
Revision 2.8 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
12 #ifdef MSDOS
13 #include  <fcntl.h>
14 #endif
15
11   #include  <time.h>
17
12   #include  <math.h>
13  
14 + #include  "platform.h"
15   #include  "color.h"
21
16   #include  "resolu.h"
17  
18   double  gamcor = 2.0;                   /* gamma correction */
# Line 40 | Line 34 | char  *argv[];
34   {
35          int  reverse = 0;
36          int  i;
37 < #ifdef MSDOS
38 <        extern int  _fmode;
39 <        _fmode = O_BINARY;
46 <        setmode(fileno(stdin), O_BINARY);
47 <        setmode(fileno(stdout), O_BINARY);
48 < #endif
37 >        SET_DEFAULT_BINARY();
38 >        SET_FILE_BINARY(stdin);
39 >        SET_FILE_BINARY(stdout);
40          progname = argv[0];
41  
42          for (i = 1; i < argc; i++)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines