6 |
|
*/ |
7 |
|
|
8 |
|
#include "copyright.h" |
9 |
+ |
#include "platform.h" |
10 |
|
#include "standard.h" |
11 |
|
#include "cvmesh.h" |
12 |
|
#include "otypes.h" |
74 |
|
if (i == argc-2) /* open output file */ |
75 |
|
if (freopen(argv[i+1], "w", stdout) == NULL) |
76 |
|
error(SYSTEM, "cannot open output file"); |
77 |
< |
#ifdef MSDOS |
77 |
< |
setmode(fileno(stdout), O_BINARY); |
78 |
< |
#endif |
77 |
> |
SET_FILE_BINARY(stdout); |
78 |
|
newheader("RADIANCE", stdout); /* new binary file header */ |
79 |
|
printargs(i<argc ? i+1 : argc, argv, stdout); |
80 |
|
fputformat(MESHFMT, stdout); |