--- ray/src/px/pextrem.c 1992/08/21 13:48:48 2.1 +++ ray/src/px/pextrem.c 1998/10/27 09:08:26 2.4 @@ -9,6 +9,10 @@ static char SCCSid[] = "$SunId$ LBL"; */ #include +#include +#ifdef MSDOS +#include +#endif #include "color.h" @@ -18,7 +22,9 @@ int wrongformat = 0; COLOR expos = WHTCOLOR; +extern char *malloc(); + headline(s) /* check header line */ char *s; { @@ -31,7 +37,7 @@ char *s; wrongformat = strcmp(fmt, COLRFMT); } if (!orig) - return; + return(0); if (isexpos(s)) { /* exposure */ d = exposval(s); scalecolor(expos, d); @@ -39,6 +45,7 @@ char *s; colcorval(ctmp, s); multcolor(expos, ctmp); } + return(0); } @@ -53,7 +60,11 @@ char *argv[]; COLR *scan; COLR cmin, cmax; int xmin, ymin, xmax, ymax; - +#ifdef MSDOS + extern int _fmode; + _fmode = O_BINARY; + setmode(fileno(stdin), O_BINARY); +#endif for (i = 1; i < argc; i++) /* get options */ if (!strcmp(argv[i], "-o")) orig++;