--- ray/src/px/pvalue.c 2003/02/27 02:00:12 2.17 +++ ray/src/px/pvalue.c 2003/06/05 19:29:34 2.18 @@ -1,5 +1,5 @@ #ifndef lint -static const char RCSid[] = "$Id: pvalue.c,v 2.17 2003/02/27 02:00:12 greg Exp $"; +static const char RCSid[] = "$Id: pvalue.c,v 2.18 2003/06/05 19:29:34 schorsch Exp $"; #endif /* * pvalue.c - program to print pixel values. @@ -7,12 +7,10 @@ static const char RCSid[] = "$Id: pvalue.c,v 2.17 2003 * 4/23/86 */ -#include "standard.h" - -#include "color.h" - #include +#include "standard.h" +#include "color.h" #include "resolu.h" typedef unsigned short uint16; /* sizeof (uint16) must == 2 */ @@ -271,10 +269,10 @@ unkopt: } if (reverse) { -#ifdef MSDOS - setmode(fileno(stdout), O_BINARY); +#ifdef _WIN32 + SET_FILE_BINARY(stdout); if (format != 'a' && format != 'i') - setmode(fileno(fin), O_BINARY); + SET_FILE_BINARY(fin); #endif /* get header */ if (header) { @@ -319,10 +317,10 @@ unkopt: fputsresolu(&picres, stdout); /* always put resolution */ valtopix(); } else { -#ifdef MSDOS - setmode(fileno(fin), O_BINARY); +#ifdef _WIN32 + SET_FILE_BINARY(fin); if (format != 'a' && format != 'i') - setmode(fileno(stdout), O_BINARY); + SET_FILE_BINARY(stdout); #endif /* get header */ getheader(fin, checkhead, NULL);