--- ray/src/px/pcomb.c 1992/09/08 10:35:05 2.6 +++ ray/src/px/pcomb.c 1992/10/02 16:22:51 2.8 @@ -12,11 +12,17 @@ static char SCCSid[] = "$SunId$ LBL"; #include +#ifdef MSDOS +#include +#endif + +#include + #include #include "color.h" -#include "resolu.h" +#include "resolu.h" #include "calcomp.h" @@ -64,7 +70,9 @@ int wrongformat = 0; FILE *popen(); +extern char *emalloc(); + main(argc, argv) int argc; char *argv[]; @@ -72,6 +80,12 @@ char *argv[]; int original; double f; int a, i; +#ifdef MSDOS + extern int _fmode; + _fmode = O_BINARY; + setmode(fileno(stdin), O_BINARY); + setmode(fileno(stdout), O_BINARY); +#endif /* scan options */ for (a = 1; a < argc; a++) { if (argv[a][0] == '-') @@ -335,7 +349,6 @@ combine() /* combine pictures */ advance() /* read in data for next scanline */ { - extern double fabs(); int ytarget; register COLOR *st; register int i, j;