# | Line 9 | Line 9 | static const char RCSid[] = "$Id$"; | |
---|---|---|
9 | ||
10 | #include "copyright.h" | |
11 | ||
12 | + | #include "platform.h" |
13 | #include "ray.h" | |
13 | – | |
14 | #include "otypes.h" | |
15 | – | |
15 | #include "ambient.h" | |
17 | – | |
16 | #include "random.h" | |
17 | ||
18 | #ifndef OCTSCALE | |
# | Line 474 | Line 472 | int creat; | |
472 | #ifdef F_SETLKW | |
473 | aflock(creat ? F_WRLCK : F_RDLCK); | |
474 | #endif | |
475 | < | #ifdef MSDOS |
478 | < | setmode(fileno(ambfp), O_BINARY); |
479 | < | #endif |
475 | > | SET_FILE_BINARY(ambfp); |
476 | if (mybuf == NULL) | |
477 | mybuf = (char *)bmalloc(BUFSIZ+8); | |
478 | setbuf(ambfp, mybuf); |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |