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

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

# Line 6 | Line 6 | static const char      RCSid[] = "$Id$";
6   */
7  
8   #include <stdio.h>
9
10 #ifdef MSDOS
11 #include  <fcntl.h>
12 #endif
13
9   #include  <time.h>
10  
11 + #include "platform.h"
12   #include "color.h"
17
13   #include "resolu.h"
14  
15   int     order;                          /* input orientation */
# Line 55 | Line 50 | char   *argv[];
50   {
51          static char     picfmt[LPICFMT+1] = PICFMT;
52          int     i, rval;
53 < #ifdef MSDOS
54 <        extern int  _fmode;
60 <        _fmode = O_BINARY;
61 <        setmode(fileno(stdout), O_BINARY);
62 < #endif
53 >        SET_DEFAULT_BINARY();
54 >        SET_FILE_BINARY(stdout);
55          progname = argv[0];
56  
57          for (i = 1; i < argc; i++)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines