--- ray/src/px/macbethcal.c 2003/02/22 02:07:27 2.17 +++ ray/src/px/macbethcal.c 2003/06/05 19:29:34 2.18 @@ -1,5 +1,5 @@ #ifndef lint -static const char RCSid[] = "$Id: macbethcal.c,v 2.17 2003/02/22 02:07:27 greg Exp $"; +static const char RCSid[] = "$Id: macbethcal.c,v 2.18 2003/06/05 19:29:34 schorsch Exp $"; #endif /* * Calibrate a scanned MacBeth Color Checker Chart @@ -12,10 +12,9 @@ static const char RCSid[] = "$Id: macbethcal.c,v 2.17 #include #include -#ifdef MSDOS -#include -#endif -#include +#include + +#include "platform.h" #include "color.h" #include "resolu.h" #include "pmap.h" @@ -141,9 +140,7 @@ char **argv; perror(argv[i]); exit(1); } -#ifdef MSDOS - setmode(fileno(debugfp), O_BINARY); -#endif + SET_FILE_BINARY(debugfp); newheader("RADIANCE", debugfp); /* start */ printargs(argc, argv, debugfp); /* header */ break; @@ -188,9 +185,7 @@ char **argv; exit(1); } if (scanning) { /* load input picture header */ -#ifdef MSDOS - setmode(fileno(stdin), O_BINARY); -#endif + SET_FILE_BINARY(stdin); if (checkheader(stdin, COLRFMT, NULL) < 0 || fgetresolu(&xmax, &ymax, stdin) < 0) { fprintf(stderr, "%s: bad input picture\n", progname);