# | Line 10 | Line 10 | static const char RCSid[] = "$Id$"; | |
---|---|---|
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 | ||
# | Line 233 | Line 234 | main(int argc, char *argv[]) | |
234 | /* write result to stdout */ | |
235 | if (outfmt == DTfromHeader) | |
236 | outfmt = mres->dtype; | |
236 | – | #ifdef _WIN32 |
237 | if (outfmt != DTascii) | |
238 | < | _setmode(fileno(stdout), _O_BINARY); |
239 | < | #endif |
238 | > | SET_FILE_BINARY(stdout); |
239 | newheader("RADIANCE", stdout); | |
240 | printargs(argc, argv, stdout); | |
241 | if (!rmx_write(mres, outfmt, stdout)) { |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |