10 |
|
#include "rtio.h" |
11 |
|
#include "resolu.h" |
12 |
|
#include "rmatrix.h" |
13 |
+ |
#include "platform.h" |
14 |
|
|
15 |
|
#define MAXCOMP 50 /* #components we support */ |
16 |
|
|
232 |
|
if (mres == NULL) /* check that we got something */ |
233 |
|
goto userr; |
234 |
|
/* write result to stdout */ |
234 |
– |
#ifdef getc_unlocked |
235 |
– |
flockfile(stdout); |
236 |
– |
#endif |
235 |
|
if (outfmt == DTfromHeader) |
236 |
|
outfmt = mres->dtype; |
239 |
– |
#ifdef _WIN32 |
237 |
|
if (outfmt != DTascii) |
238 |
< |
_setmode(fileno(stdout), _O_BINARY); |
242 |
< |
#endif |
238 |
> |
SET_FILE_BINARY(stdout); |
239 |
|
newheader("RADIANCE", stdout); |
240 |
|
printargs(argc, argv, stdout); |
241 |
|
if (!rmx_write(mres, outfmt, stdout)) { |