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