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

Comparing ray/src/px/pcompos.c (file contents):
Revision 2.21 by greg, Sat Feb 22 02:07:27 2003 UTC vs.
Revision 2.22 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
11   #include  <math.h>
13
14 #ifdef MSDOS
15 #include  <fcntl.h>
16 #endif
17
12   #include  <time.h>
13  
14 < #include  "color.h"
14 > #include "copyright.h"
15  
16 + #include  "platform.h"
17 + #include  "color.h"
18   #include  "resolu.h"
19  
20   #define  MAXFILE        64
# Line 95 | Line 91 | char  *argv[];
91          int  xsgn, ysgn;
92          char  *thislabel;
93          int  an;
94 < #ifdef MSDOS
95 <        extern int  _fmode;
96 <        _fmode = O_BINARY;
101 <        setmode(fileno(stdin), O_BINARY);
102 <        setmode(fileno(stdout), O_BINARY);
103 < #endif
94 >        SET_DEFAULT_BINARY();
95 >        SET_FILE_BINARY(stdin);
96 >        SET_FILE_BINARY(stdout);
97          progname = argv[0];
98  
99          for (an = 1; an < argc && argv[an][0] == '-'; an++)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines