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 |
|
|
23 |
|
{ |
24 |
|
int i; |
25 |
|
int status = 0; |
26 |
< |
#ifdef MSDOS |
27 |
< |
extern int _fmode; |
28 |
< |
_fmode = O_BINARY; |
31 |
< |
setmode(fileno(stdin), O_BINARY); |
32 |
< |
setmode(fileno(stdout), O_BINARY); |
33 |
< |
#endif |
26 |
> |
SET_DEFAULT_BINARY(); |
27 |
> |
SET_FILE_BINARY(stdin); |
28 |
> |
SET_FILE_BINARY(stdout); |
29 |
|
if (argc < 2) |
30 |
|
status += printp(NULL) == -1; |
31 |
|
else |