--- ray/src/px/ra_rgbe.c 2003/04/23 00:52:34 2.11 +++ ray/src/px/ra_rgbe.c 2003/06/05 19:29:34 2.12 @@ -1,5 +1,5 @@ #ifndef lint -static const char RCSid[] = "$Id: ra_rgbe.c,v 2.11 2003/04/23 00:52:34 greg Exp $"; +static const char RCSid[] = "$Id: ra_rgbe.c,v 2.12 2003/06/05 19:29:34 schorsch Exp $"; #endif /* * program to convert from RADIANCE RLE to flat format @@ -8,13 +8,11 @@ static const char RCSid[] = "$Id: ra_rgbe.c,v 2.11 200 #include #include #include + +#include "platform.h" #include "color.h" #include "resolu.h" -#ifdef MSDOS -#include -#endif - extern int addhline(); #define dumpheader(fp) fwrite(headlines, 1, headlen, fp) @@ -77,9 +75,7 @@ gotfile: progname, argv[i]); exit(1); } -#ifdef MSDOS - setmode(fileno(stdin), O_BINARY); -#endif + SET_FILE_BINARY(stdin); ospec = i==argc-2 ? argv[i+1] : (char *)NULL; while (transfer(ospec)) ; @@ -154,9 +150,7 @@ char *ospec; } } } -#ifdef MSDOS - setmode(fileno(fp), O_BINARY); -#endif + SET_FILE_BINARY(fp); dumpheader(fp); /* put out header */ fputs(progname, fp); if (bradj)