7 |
|
|
8 |
|
#include "copyright.h" |
9 |
|
|
10 |
< |
#include "ray.h" |
10 |
> |
#include <sys/types.h> |
11 |
> |
#include <signal.h> |
12 |
|
|
13 |
+ |
#include "platform.h" |
14 |
+ |
#include "ray.h" |
15 |
|
#include "source.h" |
13 |
– |
|
16 |
|
#include "ambient.h" |
15 |
– |
|
17 |
|
#include "random.h" |
17 |
– |
|
18 |
|
#include "paths.h" |
19 |
|
|
20 |
– |
#include <sys/types.h> |
21 |
– |
|
22 |
– |
#include <signal.h> |
20 |
|
/* persistent processes define */ |
21 |
|
#ifdef F_SETLKW |
22 |
|
#define PERSIST 1 /* normal persist */ |
173 |
|
} |
174 |
|
if (argv[i][2] == 'I') { /* file */ |
175 |
|
rval = wordfile(tralp, |
176 |
< |
getpath(argv[++i],getlibpath(),R_OK)); |
176 |
> |
getpath(argv[++i],getrlibpath(),R_OK)); |
177 |
|
if (rval < 0) { |
178 |
|
sprintf(errmsg, |
179 |
|
"cannot open trace include file \"%s\"", |
195 |
|
} |
196 |
|
if (argv[i][2] == 'E') { /* file */ |
197 |
|
rval = wordfile(tralp, |
198 |
< |
getpath(argv[++i],getlibpath(),R_OK)); |
198 |
> |
getpath(argv[++i],getrlibpath(),R_OK)); |
199 |
|
if (rval < 0) { |
200 |
|
sprintf(errmsg, |
201 |
|
"cannot open trace exclude file \"%s\"", |
271 |
|
openheader(); |
272 |
|
} |
273 |
|
#endif |
274 |
< |
#ifdef MSDOS |
274 |
> |
#ifdef _WIN32 |
275 |
|
if (outform != 'a') |
276 |
< |
setmode(fileno(stdout), O_BINARY); |
276 |
> |
SET_FILE_BINARY(stdout); |
277 |
|
if (octname == NULL) |
278 |
< |
setmode(fileno(stdin), O_BINARY); |
278 |
> |
SET_FILE_BINARY(stdin); |
279 |
|
#endif |
280 |
|
readoct(octname, loadflags, &thescene, NULL); |
281 |
|
nsceneobjs = nobjects; |