--- ray/src/px/pextrem.c 2003/02/22 02:07:27 2.5 +++ ray/src/px/pextrem.c 2003/06/05 19:29:34 2.6 @@ -1,5 +1,5 @@ #ifndef lint -static const char RCSid[] = "$Id: pextrem.c,v 2.5 2003/02/22 02:07:27 greg Exp $"; +static const char RCSid[] = "$Id: pextrem.c,v 2.6 2003/06/05 19:29:34 schorsch Exp $"; #endif /* * Find extrema points in a Radiance picture. @@ -7,9 +7,8 @@ static const char RCSid[] = "$Id: pextrem.c,v 2.5 2003 #include #include -#ifdef MSDOS -#include -#endif + +#include "platform.h" #include "color.h" @@ -55,11 +54,8 @@ char *argv[]; COLR *scan; COLR cmin, cmax; int xmin, ymin, xmax, ymax; -#ifdef MSDOS - extern int _fmode; - _fmode = O_BINARY; - setmode(fileno(stdin), O_BINARY); -#endif + SET_DEFAULT_BINARY() + SET_FILE_BINARY(stdin); for (i = 1; i < argc; i++) /* get options */ if (!strcmp(argv[i], "-o")) orig++;