42 |
|
#endif |
43 |
|
|
44 |
|
#ifndef BSD |
45 |
+ |
#ifdef write /* platform.h renames those for Windows */ |
46 |
+ |
#undef write |
47 |
+ |
#endif |
48 |
|
#define write writebuf /* safe i/o routines */ |
49 |
+ |
#ifdef read |
50 |
+ |
#undef read |
51 |
+ |
#endif |
52 |
|
#define read readbuf |
53 |
|
#endif |
54 |
|
|
252 |
|
} |
253 |
|
if (rtrunc) { |
254 |
|
sprintf(errmsg, "truncated section, %ld rays lost (%.1f%%)", |
255 |
< |
rtrunc, 100.*rtrunc/(rtrunc+biglob(hp)->nrd)); |
255 |
> |
(long)rtrunc, |
256 |
> |
100.*rtrunc/(rtrunc+biglob(hp)->nrd)); |
257 |
|
error(WARNING, errmsg); |
258 |
|
} |
259 |
|
/* add to holodeck list */ |