8 |
|
*/ |
9 |
|
|
10 |
|
#include <stdio.h> |
11 |
– |
#ifdef MSDOS |
12 |
– |
#include <fcntl.h> |
13 |
– |
#endif |
11 |
|
#include <time.h> |
12 |
|
|
13 |
+ |
#include "platform.h" |
14 |
|
#include "color.h" |
15 |
|
#include "resolu.h" |
16 |
|
|
22 |
|
char *argv[]; |
23 |
|
{ |
24 |
|
int i, status = 0; |
25 |
< |
#ifdef MSDOS |
26 |
< |
extern int _fmode; |
27 |
< |
_fmode = O_BINARY; |
30 |
< |
setmode(fileno(stdin), O_BINARY); |
31 |
< |
setmode(fileno(stdout), O_BINARY); |
32 |
< |
#endif |
25 |
> |
SET_DEFAULT_BINARY(); |
26 |
> |
SET_FILE_BINARY(stdin); |
27 |
> |
SET_FILE_BINARY(stdout); |
28 |
|
if (argc < 2) |
29 |
|
status = printp(NULL) == -1; |
30 |
|
else |