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