--- ray/src/px/ra_bn.c 1991/11/11 14:01:48 1.9 +++ ray/src/px/ra_bn.c 1992/10/02 16:24:56 2.4 @@ -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"; @@ -12,11 +12,17 @@ static char SCCSid[] = "$SunId$ LBL"; #include +#ifdef MSDOS +#include +#endif + +#include + #include "color.h" #include "resolu.h" -extern double atof(), pow(); +extern char *malloc(); double gamma = 2.0; /* gamma correction */ @@ -37,7 +43,12 @@ char *argv[]; { 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]; for (i = 1; i < argc; i++)