# | Line 8 | Line 8 | static const char RCSid[] = "$Id$"; | |
---|---|---|
8 | #include <stdio.h> | |
9 | #include <math.h> | |
10 | #include <ctype.h> | |
11 | < | #ifdef MSDOS |
12 | < | #include <fcntl.h> |
13 | < | #endif |
11 | > | |
12 | > | #include "platform.h" |
13 | #include "color.h" | |
14 | ||
15 | #define UPPER(c) ((c)&~0x20) /* ASCII trick */ | |
# | Line 156 | Line 155 | char *argv[]; | |
155 | progname, argv[i+1]); | |
156 | exit(1); | |
157 | } | |
158 | < | #ifdef MSDOS |
160 | < | setmode(fileno(stdin), O_BINARY); |
161 | < | #endif |
158 | > | SET_FILE_BINARY(stdin); |
159 | /* get our header */ | |
160 | getheader(stdin, headline, NULL); | |
161 | if (wrongformat || fgetresolu(&xmax, &ymax, stdin) < 0) |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |