| # | Line 232 | Line 232 | main(int argc, char *argv[]) | |
|---|---|---|
| 232 | if (mres == NULL) /* check that we got something */ | |
| 233 | goto userr; | |
| 234 | /* write result to stdout */ | |
| 235 | + | #ifdef getc_unlocked |
| 236 | + | flockfile(stdout); |
| 237 | + | #endif |
| 238 | + | #ifdef _WIN32 |
| 239 | + | if (outfmt != DTascii) |
| 240 | + | _setmode(fileno(stdout), _O_BINARY); |
| 241 | + | #endif |
| 242 | newheader("RADIANCE", stdout); | |
| 243 | printargs(argc, argv, stdout); | |
| 244 | nbw = rmx_write(mres, outfmt, stdout); | |
| – | Removed lines |
| + | Added lines |
| < | Changed lines (old) |
| > | Changed lines (new) |