--- ray/src/rt/rvmain.c 2003/02/25 02:47:23 2.2 +++ ray/src/rt/rvmain.c 2003/06/05 19:29:34 2.3 @@ -1,5 +1,5 @@ #ifndef lint -static const char RCSid[] = "$Id: rvmain.c,v 2.2 2003/02/25 02:47:23 greg Exp $"; +static const char RCSid[] = "$Id: rvmain.c,v 2.3 2003/06/05 19:29:34 schorsch Exp $"; #endif /* * rvmain.c - main for rview interactive viewer @@ -7,18 +7,14 @@ static const char RCSid[] = "$Id: rvmain.c,v 2.2 2003/ #include "copyright.h" -#include "ray.h" +#include +#include "platform.h" +#include "ray.h" #include "source.h" - #include "ambient.h" - #include "random.h" - #include "paths.h" - -#include - #include "view.h" char *progname; /* argv[0] */ @@ -207,9 +203,7 @@ char *argv[]; if (octname == NULL) error(USER, "missing octree argument"); /* set up output */ -#ifdef MSDOS - setmode(fileno(stdout), O_BINARY); -#endif + SET_FILE_BINARY(stdout); readoct(octname, ~(IO_FILES|IO_INFO), &thescene, NULL); nsceneobjs = nobjects;