--- ray/src/px/pcomb.c 2003/02/22 02:07:27 2.22 +++ ray/src/px/pcomb.c 2003/06/08 12:03:10 2.24 @@ -1,5 +1,5 @@ #ifndef lint -static const char RCSid[] = "$Id: pcomb.c,v 2.22 2003/02/22 02:07:27 greg Exp $"; +static const char RCSid[] = "$Id: pcomb.c,v 2.24 2003/06/08 12:03:10 schorsch Exp $"; #endif /* * Combine picture files according to calcomp functions. @@ -8,11 +8,9 @@ static const char RCSid[] = "$Id: pcomb.c,v 2.22 2003/ */ #include "standard.h" - +#include "platform.h" #include "color.h" - #include "calcomp.h" - #include "view.h" #define MAXINP 32 /* maximum number of input files */ @@ -83,12 +81,9 @@ char *argv[]; int original; double f; int a, i; -#ifdef MSDOS - extern int _fmode; - _fmode = O_BINARY; - setmode(fileno(stdin), O_BINARY); - setmode(fileno(stdout), O_BINARY); -#endif + SET_DEFAULT_BINARY(); + SET_FILE_BINARY(stdin); + SET_FILE_BINARY(stdout); progname = argv[0]; /* scan options */ for (a = 1; a < argc; a++) {