--- ray/src/px/pflip.c 1991/11/12 16:04:49 2.1 +++ ray/src/px/pflip.c 1992/09/21 12:14:23 2.2 @@ -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,6 +10,10 @@ static char SCCSid[] = "$SunId$ LBL"; #include +#ifdef MSDOS +#include +#endif + #include "color.h" #include "resolu.h" @@ -27,7 +31,9 @@ FILE *fin; /* input file */ char *progname; +extern char *malloc(); + int neworder() /* figure out new order from old */ { @@ -51,7 +57,11 @@ int argc; char *argv[]; { int i; - +#ifdef MSDOS + extern int _fmode; + _fmode = O_BINARY; + setmode(fileno(stdout), O_BINARY); +#endif progname = argv[0]; for (i = 1; i < argc; i++)