7 |
|
|
8 |
|
#include <stdio.h> |
9 |
|
#include <math.h> |
10 |
– |
#ifdef MSDOS |
11 |
– |
#include <fcntl.h> |
12 |
– |
#endif |
10 |
|
#include <time.h> |
11 |
+ |
|
12 |
+ |
#include "platform.h" |
13 |
|
#include "color.h" |
14 |
|
#include "resolu.h" |
15 |
|
|
64 |
|
progname, argv[i+1]); |
65 |
|
exit(1); |
66 |
|
} |
67 |
< |
#ifdef MSDOS |
68 |
< |
setmode(fileno(stdin), O_BINARY); |
70 |
< |
setmode(fileno(stdout), O_BINARY); |
71 |
< |
#endif |
67 |
> |
SET_FILE_BINARY(stdin); |
68 |
> |
SET_FILE_BINARY(stdout); |
69 |
|
setcolrgam(gamcor); /* set up gamma correction */ |
70 |
|
if (reverse) { |
71 |
|
/* get their image resolution */ |