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.23 by schorsch, Thu Jul 3 22:41:44 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 + #include  <string.h>
14  
15 < #include  "color.h"
15 > #include "copyright.h"
16  
17 + #include  "platform.h"
18 + #include  "color.h"
19   #include  "resolu.h"
20  
21   #define  MAXFILE        64
# Line 95 | Line 92 | char  *argv[];
92          int  xsgn, ysgn;
93          char  *thislabel;
94          int  an;
95 < #ifdef MSDOS
96 <        extern int  _fmode;
97 <        _fmode = O_BINARY;
101 <        setmode(fileno(stdin), O_BINARY);
102 <        setmode(fileno(stdout), O_BINARY);
103 < #endif
95 >        SET_DEFAULT_BINARY();
96 >        SET_FILE_BINARY(stdin);
97 >        SET_FILE_BINARY(stdout);
98          progname = argv[0];
99  
100          for (an = 1; an < argc && argv[an][0] == '-'; an++)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines