6 |
|
* Added white-balance adjustment 10/01 (GW). |
7 |
|
*/ |
8 |
|
|
9 |
+ |
#include "platform.h" |
10 |
|
#include "pcond.h" |
11 |
|
|
12 |
|
|
163 |
|
/* open output file */ |
164 |
|
if (i+2 == argc && freopen(argv[i+1], "w", stdout) == NULL) |
165 |
|
syserror(argv[i+1]); |
166 |
< |
#ifdef MSDOS |
167 |
< |
setmode(fileno(infp), O_BINARY); |
167 |
< |
setmode(fileno(stdout), O_BINARY); |
168 |
< |
#endif |
166 |
> |
SET_FILE_BINARY(infp); |
167 |
> |
SET_FILE_BINARY(stdout); |
168 |
|
getahead(); /* load input header */ |
169 |
|
printargs(argc, argv, stdout); /* add to output header */ |
170 |
|
if (mbcalfile == NULL & outprims != stdprims) |