--- ray/src/px/oki20c.c 1993/08/02 14:39:07 2.10 +++ ray/src/px/oki20c.c 2003/06/05 19:29:34 2.12 @@ -1,18 +1,14 @@ -/* Copyright (c) 1992 Regents of the University of California */ - #ifndef lint -static char SCCSid[] = "$SunId$ LBL"; +static const char RCSid[] = "$Id: oki20c.c,v 2.12 2003/06/05 19:29:34 schorsch Exp $"; #endif - /* * oki20c.c - program to dump pixel file to OkiMate 20 color printer. */ #include -#ifdef MSDOS -#include -#endif +#include +#include "platform.h" #include "color.h" #include "resolu.h" @@ -41,12 +37,9 @@ int argc; char *argv[]; { int i, status = 0; -#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); if (argc > 1 && !strcmp(argv[1], "-p")) { dofilter++; argv++; argc--;