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.3 by greg, Thu Jul 16 12:08:44 1992 UTC vs.
Revision 2.4 by greg, Thu Oct 15 21:13:13 1992 UTC

# Line 12 | Line 12 | static char SCCSid[] = "$SunId$ LBL";
12  
13   #include  <stdio.h>
14  
15 + #ifdef MSDOS
16 + #include  <fcntl.h>
17 + #endif
18 +
19   #include  "color.h"
20  
21   #include  "ambient.h"
# Line 64 | Line 68 | char  *argv[];
68                          printargs(argc, argv, stdout);
69                  fputformat(AMBFMT, stdout);
70                  putchar('\n');
71 + #ifdef MSDOS
72 +                setmode(fileno(stdout), O_BINARY);
73 + #endif
74                  putambmagic(stdout);
75                  writamb(fp);
76          } else {
77 + #ifdef MSDOS
78 +                setmode(fileno(fp), O_BINARY);
79 + #endif
80                  if (checkheader(fp, AMBFMT, header ? stdout : (FILE *)NULL) < 0)
81                          goto formaterr;
82                  if (!hasambmagic(fp))

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines