| # | Line 7 | Line 7 | static const char RCSid[] = "$Id$"; | |
|---|---|---|
| 7 | */ | |
| 8 | ||
| 9 | #include <stdio.h> | |
| 10 | – | |
| 10 | #include <time.h> | |
| 11 | + | #include <math.h> |
| 12 | ||
| 13 | + | #include "platform.h" |
| 14 | #include "color.h" | |
| 14 | – | |
| 15 | #include "resolu.h" | |
| 16 | ||
| 17 | – | #ifdef MSDOS |
| 18 | – | #include <fcntl.h> |
| 19 | – | #endif |
| 20 | – | |
| 21 | – | #include <math.h> |
| 22 | – | |
| 17 | #define MAXCOLORS 256 | |
| 18 | ||
| 19 | int rmap[MAXCOLORS]; | |
| # | Line 62 | Line 56 | char *argv[]; | |
| 56 | { | |
| 57 | int bitsperpix; | |
| 58 | int i; | |
| 59 | < | #ifdef MSDOS |
| 60 | < | extern int _fmode; |
| 61 | < | _fmode = O_BINARY; |
| 68 | < | setmode(fileno(stdin), O_BINARY); |
| 69 | < | setmode(fileno(stdout), O_BINARY); |
| 70 | < | #endif |
| 59 | > | SET_DEFAULT_BINARY(); |
| 60 | > | SET_FILE_BINARY(stdin); |
| 61 | > | SET_FILE_BINARY(stdout); |
| 62 | progname = argv[0]; | |
| 63 | samplefac = 0; | |
| 64 | ||
| – | Removed lines |
| + | Added lines |
| < | Changed lines (old) |
| > | Changed lines (new) |