| # | Line 21 | Line 21 | static const char RCSid[] = "$Id$"; | |
|---|---|---|
| 21 | * irradiance values are desired. | |
| 22 | */ | |
| 23 | ||
| 24 | + | #include "platform.h" |
| 25 | #include "ray.h" | |
| 25 | – | |
| 26 | #include "otypes.h" | |
| 27 | – | |
| 27 | #include "resolu.h" | |
| 28 | ||
| 29 | CUBE thescene; /* our scene */ | |
| # | Line 146 | Line 145 | char *fname; | |
| 145 | sprintf(errmsg, "cannot open input file \"%s\"", fname); | |
| 146 | error(SYSTEM, errmsg); | |
| 147 | } | |
| 148 | < | #ifdef MSDOS |
| 148 | > | #ifdef _WIN32 |
| 149 | if (inform != 'a') | |
| 150 | < | setmode(fileno(fp), O_BINARY); |
| 150 | > | SET_FILE_BINARY(fp); |
| 151 | #endif | |
| 152 | /* set up output */ | |
| 153 | setoutput(outvals); | |
| – | Removed lines |
| + | Added lines |
| < | Changed lines (old) |
| > | Changed lines (new) |