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

Comparing ray/src/px/ra_rgbe.c (file contents):
Revision 2.11 by greg, Wed Apr 23 00:52:34 2003 UTC vs.
Revision 2.13 by schorsch, Thu Jul 3 22:41:44 2003 UTC

# Line 8 | Line 8 | static const char      RCSid[] = "$Id$";
8   #include  <stdio.h>
9   #include  <math.h>
10   #include  <time.h>
11 + #include  <string.h>
12 +
13 + #include  "platform.h"
14   #include  "color.h"
15   #include  "resolu.h"
16  
14 #ifdef MSDOS
15 #include  <fcntl.h>
16 #endif
17
17   extern int      addhline();
18  
19   #define dumpheader(fp)  fwrite(headlines, 1, headlen, fp)
# Line 77 | Line 76 | gotfile:
76                                  progname, argv[i]);
77                  exit(1);
78          }
79 < #ifdef MSDOS
81 <        setmode(fileno(stdin), O_BINARY);
82 < #endif
79 >        SET_FILE_BINARY(stdin);
80          ospec = i==argc-2 ? argv[i+1] : (char *)NULL;
81          while (transfer(ospec))
82                  ;
# Line 154 | Line 151 | char   *ospec;
151                          }
152                  }
153          }
154 < #ifdef MSDOS
158 <        setmode(fileno(fp), O_BINARY);
159 < #endif
154 >        SET_FILE_BINARY(fp);
155          dumpheader(fp);                 /* put out header */
156          fputs(progname, fp);
157          if (bradj)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines