6 |
|
*/ |
7 |
|
|
8 |
|
#include <stdio.h> |
9 |
– |
|
10 |
– |
#ifdef MSDOS |
11 |
– |
#include <fcntl.h> |
12 |
– |
#endif |
13 |
– |
|
9 |
|
#include <time.h> |
10 |
|
|
11 |
+ |
#include "platform.h" |
12 |
|
#include "color.h" |
17 |
– |
|
13 |
|
#include "resolu.h" |
14 |
|
|
15 |
|
int order; /* input orientation */ |
50 |
|
{ |
51 |
|
static char picfmt[LPICFMT+1] = PICFMT; |
52 |
|
int i, rval; |
53 |
< |
#ifdef MSDOS |
54 |
< |
extern int _fmode; |
60 |
< |
_fmode = O_BINARY; |
61 |
< |
setmode(fileno(stdout), O_BINARY); |
62 |
< |
#endif |
53 |
> |
SET_DEFAULT_BINARY(); |
54 |
> |
SET_FILE_BINARY(stdout); |
55 |
|
progname = argv[0]; |
56 |
|
|
57 |
|
for (i = 1; i < argc; i++) |