--- ray/src/ot/obj2mesh.c 2003/03/14 21:27:46 2.3 +++ ray/src/ot/obj2mesh.c 2003/06/08 12:03:10 2.6 @@ -1,11 +1,12 @@ #ifndef lint -static const char RCSid[] = "$Id: obj2mesh.c,v 2.3 2003/03/14 21:27:46 greg Exp $"; +static const char RCSid[] = "$Id: obj2mesh.c,v 2.6 2003/06/08 12:03:10 schorsch Exp $"; #endif /* * Main program to compile a Wavefront .OBJ file into a Radiance mesh */ #include "copyright.h" +#include "platform.h" #include "standard.h" #include "cvmesh.h" #include "otypes.h" @@ -73,9 +74,7 @@ char *argv[]; if (i == argc-2) /* open output file */ if (freopen(argv[i+1], "w", stdout) == NULL) error(SYSTEM, "cannot open output file"); -#ifdef MSDOS - setmode(fileno(stdout), O_BINARY); -#endif + SET_FILE_BINARY(stdout); newheader("RADIANCE", stdout); /* new binary file header */ printargs(i