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

Comparing ray/src/px/paintjet.c (file contents):
Revision 2.4 by greg, Sat Feb 22 02:07:27 2003 UTC vs.
Revision 2.5 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 #ifdef MSDOS
12 #include  <fcntl.h>
13 #endif
11   #include  <time.h>
12  
13 + #include  "platform.h"
14   #include  "color.h"
15   #include  "resolu.h"
16  
# Line 24 | Line 22 | int  argc;
22   char  *argv[];
23   {
24          int  i, status = 0;
25 < #ifdef MSDOS
26 <        extern int  _fmode;
27 <        _fmode = O_BINARY;
30 <        setmode(fileno(stdin), O_BINARY);
31 <        setmode(fileno(stdout), O_BINARY);
32 < #endif
25 >        SET_DEFAULT_BINARY();
26 >        SET_FILE_BINARY(stdin);
27 >        SET_FILE_BINARY(stdout);
28          if (argc < 2)
29                  status = printp(NULL) == -1;
30          else

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines