--- ray/src/ot/oconv.c 2003/03/12 17:26:58 2.14 +++ ray/src/ot/oconv.c 2003/06/08 12:03:10 2.16 @@ -1,5 +1,5 @@ #ifndef lint -static const char RCSid[] = "$Id: oconv.c,v 2.14 2003/03/12 17:26:58 greg Exp $"; +static const char RCSid[] = "$Id: oconv.c,v 2.16 2003/06/08 12:03:10 schorsch Exp $"; #endif /* * oconv.c - main program for object to octree conversion. @@ -8,13 +8,10 @@ static const char RCSid[] = "$Id: oconv.c,v 2.14 2003/ */ #include "standard.h" - +#include "platform.h" #include "octree.h" - #include "object.h" - #include "otypes.h" - #include "paths.h" #define OMARGIN (10*FTINY) /* margin around global cube */ @@ -85,9 +82,7 @@ char *argv[]; break; } breakopt: -#ifdef MSDOS - setmode(fileno(stdout), O_BINARY); -#endif + SET_FILE_BINARY(stdout); if (infile != NULL) { /* get old octree & objects */ if (thescene.cusize > FTINY) error(USER, "only one of '-b' or '-i'");