10 |
|
#include <string.h> |
11 |
|
#include <math.h> |
12 |
|
#include <time.h> |
13 |
+ |
|
14 |
+ |
#include "platform.h" |
15 |
|
#include "color.h" |
16 |
|
#include "resolu.h" |
17 |
|
|
16 |
– |
#ifdef MSDOS |
17 |
– |
#include <fcntl.h> |
18 |
– |
#endif |
19 |
– |
|
18 |
|
int rgbinp = -1; /* input is RGBE? */ |
19 |
|
|
20 |
|
int rgbout = 0; /* output should be RGBE? */ |
59 |
|
char *argv[]; |
60 |
|
{ |
61 |
|
int i; |
62 |
< |
#ifdef MSDOS |
63 |
< |
extern int _fmode; |
64 |
< |
_fmode = O_BINARY; |
67 |
< |
setmode(fileno(stdin), O_BINARY); |
68 |
< |
setmode(fileno(stdout), O_BINARY); |
69 |
< |
#endif |
62 |
> |
SET_DEFAULT_BINARY(); |
63 |
> |
SET_FILE_BINARY(stdin); |
64 |
> |
SET_FILE_BINARY(stdout); |
65 |
|
progname = argv[0]; |
66 |
|
|
67 |
|
for (i = 1; i < argc; i++) |