18 |
|
|
19 |
|
#include <stdio.h> |
20 |
|
#include <math.h> |
21 |
– |
#ifdef MSDOS |
22 |
– |
#include <fcntl.h> |
23 |
– |
#endif |
21 |
|
#include <time.h> |
22 |
|
|
23 |
+ |
#include "platform.h" |
24 |
|
#include "pict.h" |
25 |
|
#include "color.h" |
26 |
|
#include "resolu.h" |
95 |
|
int xsize, ysize; |
96 |
|
int i, picsize; |
97 |
|
int ssizepos, lsizepos; |
98 |
< |
#ifdef MSDOS |
99 |
< |
extern int _fmode; |
100 |
< |
_fmode = O_BINARY; |
103 |
< |
setmode(fileno(stdin), O_BINARY); |
104 |
< |
setmode(fileno(stdout), O_BINARY); |
105 |
< |
#endif |
98 |
> |
SET_DEFAULT_BINARY(); |
99 |
> |
SET_FILE_BINARY(stdin); |
100 |
> |
SET_FILE_BINARY(stdout); |
101 |
|
progname = argv[0]; |
102 |
|
|
103 |
|
for (i = 1; i < argc ; i++) |