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

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

# Line 18 | Line 18 | static const char      RCSid[] = "$Id$";
18  
19   #include <stdio.h>
20   #include <math.h>
21 #ifdef MSDOS
22 #include <fcntl.h>
23 #endif
21   #include  <time.h>
22  
23 + #include "platform.h"
24   #include "pict.h"
25   #include "color.h"
26   #include "resolu.h"
# Line 97 | Line 95 | char **argv;
95      int xsize, ysize;
96      int i, picsize;
97      int ssizepos, lsizepos;
98 < #ifdef MSDOS
99 <    extern int  _fmode;
100 <    _fmode = O_BINARY;
103 <    setmode(fileno(stdin), O_BINARY);
104 <    setmode(fileno(stdout), O_BINARY);
105 < #endif
98 >        SET_DEFAULT_BINARY();
99 >    SET_FILE_BINARY(stdin);
100 >    SET_FILE_BINARY(stdout);
101      progname = argv[0];
102  
103      for (i = 1; i < argc ; i++)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines