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

Comparing ray/src/rt/lookamb.c (file contents):
Revision 2.8 by greg, Tue Feb 25 02:47:22 2003 UTC vs.
Revision 2.9 by schorsch, Thu Jun 5 19:29:34 2003 UTC

# Line 7 | Line 7 | static const char      RCSid[] = "$Id$";
7  
8   #include "copyright.h"
9  
10 + #include  "platform.h"
11   #include  "ray.h"
11
12   #include  "ambient.h"
13  
14  
# Line 62 | Line 62 | char  *argv[];
62                  }
63                  fputformat(AMBFMT, stdout);
64                  putchar('\n');
65 < #ifdef MSDOS
66 <                setmode(fileno(stdout), O_BINARY);
67 < #endif
65 >                SET_FILE_BINARY(stdout);
66                  putambmagic(stdout);
67                  writamb(fp);
68          } else {
69 < #ifdef MSDOS
72 <                setmode(fileno(fp), O_BINARY);
73 < #endif
69 >                SET_FILE_BINARY(fp);
70                  if (checkheader(fp, AMBFMT, header ? stdout : (FILE *)NULL) < 0)
71                          goto formaterr;
72                  if (!hasambmagic(fp))

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines