--- ray/src/px/ra_skel.c 2003/02/22 02:07:28 2.11 +++ ray/src/px/ra_skel.c 2003/06/05 19:29:34 2.12 @@ -1,5 +1,5 @@ #ifndef lint -static const char RCSid[] = "$Id: ra_skel.c,v 2.11 2003/02/22 02:07:28 greg Exp $"; +static const char RCSid[] = "$Id: ra_skel.c,v 2.12 2003/06/05 19:29:34 schorsch Exp $"; #endif /* * Skeletal 24-bit image conversion program. Replace "skel" @@ -17,10 +17,9 @@ static const char RCSid[] = "$Id: ra_skel.c,v 2.11 200 #include #include -#ifdef MSDOS -#include -#endif #include + +#include "platform.h" #include "color.h" #include "resolu.h" @@ -74,10 +73,8 @@ char *argv[]; progname, argv[i+1]); exit(1); } -#ifdef MSDOS - setmode(fileno(stdin), O_BINARY); - setmode(fileno(stdout), O_BINARY); -#endif + SET_FILE_BINARY(stdin); + SET_FILE_BINARY(stdout); setcolrgam(gamcor); /* set up gamma correction */ if (reverse) { /* get their image resolution */