--- ray/src/px/ra_rgbe.c 2003/04/23 00:52:34 2.11 +++ ray/src/px/ra_rgbe.c 2003/07/03 22:41:44 2.13 @@ -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.13 2003/07/03 22:41:44 schorsch Exp $"; #endif /* * program to convert from RADIANCE RLE to flat format @@ -8,13 +8,12 @@ static const char RCSid[] = "$Id: ra_rgbe.c,v 2.11 200 #include #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 +76,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 +151,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)