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

Comparing ray/src/px/pvalue.c (file contents):
Revision 2.17 by greg, Thu Feb 27 02:00:12 2003 UTC vs.
Revision 2.18 by schorsch, Thu Jun 5 19:29:34 2003 UTC

# Line 7 | Line 7 | static const char RCSid[] = "$Id$";
7   *     4/23/86
8   */
9  
10 #include  "standard.h"
11
12 #include  "color.h"
13
10   #include  <time.h>
11  
12 + #include  "standard.h"
13 + #include  "color.h"
14   #include  "resolu.h"
15  
16   typedef unsigned short uint16;  /* sizeof (uint16) must == 2 */
# Line 271 | Line 269 | unkopt:
269          }
270  
271          if (reverse) {
272 < #ifdef MSDOS
273 <                setmode(fileno(stdout), O_BINARY);
272 > #ifdef _WIN32
273 >                SET_FILE_BINARY(stdout);
274                  if (format != 'a' && format != 'i')
275 <                        setmode(fileno(fin), O_BINARY);
275 >                        SET_FILE_BINARY(fin);
276   #endif
277                                          /* get header */
278                  if (header) {
# Line 319 | Line 317 | unkopt:
317                  fputsresolu(&picres, stdout);   /* always put resolution */
318                  valtopix();
319          } else {
320 < #ifdef MSDOS
321 <                setmode(fileno(fin), O_BINARY);
320 > #ifdef _WIN32
321 >                SET_FILE_BINARY(fin);
322                  if (format != 'a' && format != 'i')
323 <                        setmode(fileno(stdout), O_BINARY);
323 >                        SET_FILE_BINARY(stdout);
324   #endif
325                                                  /* get header */
326                  getheader(fin, checkhead, NULL);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines