| 7 |
|
|
| 8 |
|
#include <stdio.h> |
| 9 |
|
#include <math.h> |
| 10 |
< |
#ifdef MSDOS |
| 11 |
< |
#include <fcntl.h> |
| 12 |
< |
#endif |
| 10 |
> |
#include <string.h> |
| 11 |
> |
|
| 12 |
> |
#include "platform.h" |
| 13 |
|
#include "color.h" |
| 14 |
|
|
| 15 |
|
|
| 55 |
|
COLR *scan; |
| 56 |
|
COLR cmin, cmax; |
| 57 |
|
int xmin, ymin, xmax, ymax; |
| 58 |
< |
#ifdef MSDOS |
| 59 |
< |
extern int _fmode; |
| 60 |
< |
_fmode = O_BINARY; |
| 61 |
< |
setmode(fileno(stdin), O_BINARY); |
| 62 |
< |
#endif |
| 58 |
> |
SET_DEFAULT_BINARY(); |
| 59 |
> |
SET_FILE_BINARY(stdin); |
| 60 |
|
for (i = 1; i < argc; i++) /* get options */ |
| 61 |
|
if (!strcmp(argv[i], "-o")) |
| 62 |
|
orig++; |