--- ray/src/px/ra_pr24.c 1991/11/11 14:01:51 1.11 +++ ray/src/px/ra_pr24.c 1992/09/21 12:15:02 2.3 @@ -1,4 +1,4 @@ -/* Copyright (c) 1991 Regents of the University of California */ +/* Copyright (c) 1992 Regents of the University of California */ #ifndef lint static char SCCSid[] = "$SunId$ LBL"; @@ -10,14 +10,20 @@ static char SCCSid[] = "$SunId$ LBL"; #include +#ifdef MSDOS +#include +#endif + #include "rasterfile.h" #include "color.h" #include "resolu.h" -extern double atof(), pow(); +extern double pow(); +extern char *malloc(); + double gamma = 2.2; /* gamma correction */ int bradj = 0; /* brightness adjustment */ @@ -34,7 +40,12 @@ char *argv[]; struct rasterfile head; int reverse = 0; int i; - +#ifdef MSDOS + extern int _fmode; + _fmode = O_BINARY; + setmode(fileno(stdin), O_BINARY); + setmode(fileno(stdout), O_BINARY); +#endif progname = argv[0]; head.ras_type = RT_STANDARD;