8 |
|
*/ |
9 |
|
|
10 |
|
#include <stdio.h> |
11 |
– |
|
12 |
– |
#ifdef MSDOS |
13 |
– |
#include <fcntl.h> |
14 |
– |
#endif |
15 |
– |
|
11 |
|
#include <time.h> |
17 |
– |
|
12 |
|
#include <math.h> |
13 |
|
|
14 |
+ |
#include "platform.h" |
15 |
|
#include "color.h" |
21 |
– |
|
16 |
|
#include "resolu.h" |
17 |
|
|
18 |
|
double gamcor = 2.0; /* gamma correction */ |
34 |
|
{ |
35 |
|
int reverse = 0; |
36 |
|
int i; |
37 |
< |
#ifdef MSDOS |
38 |
< |
extern int _fmode; |
39 |
< |
_fmode = O_BINARY; |
46 |
< |
setmode(fileno(stdin), O_BINARY); |
47 |
< |
setmode(fileno(stdout), O_BINARY); |
48 |
< |
#endif |
37 |
> |
SET_DEFAULT_BINARY(); |
38 |
> |
SET_FILE_BINARY(stdin); |
39 |
> |
SET_FILE_BINARY(stdout); |
40 |
|
progname = argv[0]; |
41 |
|
|
42 |
|
for (i = 1; i < argc; i++) |