8 |
|
*/ |
9 |
|
|
10 |
|
#include <stdio.h> |
11 |
– |
|
11 |
|
#include <math.h> |
13 |
– |
|
14 |
– |
#ifdef MSDOS |
15 |
– |
#include <fcntl.h> |
16 |
– |
#endif |
17 |
– |
|
12 |
|
#include <time.h> |
13 |
+ |
#include <string.h> |
14 |
|
|
15 |
< |
#include "color.h" |
15 |
> |
#include "copyright.h" |
16 |
|
|
17 |
+ |
#include "platform.h" |
18 |
+ |
#include "color.h" |
19 |
|
#include "resolu.h" |
20 |
|
|
21 |
|
#define MAXFILE 64 |
92 |
|
int xsgn, ysgn; |
93 |
|
char *thislabel; |
94 |
|
int an; |
95 |
< |
#ifdef MSDOS |
96 |
< |
extern int _fmode; |
97 |
< |
_fmode = O_BINARY; |
101 |
< |
setmode(fileno(stdin), O_BINARY); |
102 |
< |
setmode(fileno(stdout), O_BINARY); |
103 |
< |
#endif |
95 |
> |
SET_DEFAULT_BINARY(); |
96 |
> |
SET_FILE_BINARY(stdin); |
97 |
> |
SET_FILE_BINARY(stdout); |
98 |
|
progname = argv[0]; |
99 |
|
|
100 |
|
for (an = 1; an < argc && argv[an][0] == '-'; an++) |