--- ray/src/px/ra_rgbe.c 1992/01/03 22:58:08 2.2 +++ ray/src/px/ra_rgbe.c 1992/09/21 12:15:13 2.3 @@ -9,10 +9,15 @@ static char SCCSid[] = "$SunId$ LBL"; */ #include +#ifdef MSDOS +#include +#endif #include "color.h" #include "resolu.h" +extern char *malloc(); + int bradj = 0; /* brightness adjustment */ int doflat = 1; /* produce flat file */ @@ -25,7 +30,12 @@ int argc; char *argv[]; { int i; - +#ifdef MSDOS + extern int _fmode; + _fmode = O_BINARY; + setmode(fileno(stdin), O_BINARY); + setmode(fileno(stdout), O_BINARY); +#endif progname = argv[0]; for (i = 1; i < argc; i++) @@ -81,7 +91,7 @@ transfer() /* transfer Radiance picture */ { extern double pow(); int order; - int xmax, ymax; + int xmax, ymax; COLR *scanin; register int x; int y;