--- ray/src/px/ra_hexbit.c 2004/03/28 20:33:14 3.3 +++ ray/src/px/ra_hexbit.c 2019/12/28 18:05:14 3.6 @@ -1,14 +1,13 @@ #ifndef lint -static const char RCSid[] = "$Id: ra_hexbit.c,v 3.3 2004/03/28 20:33:14 schorsch Exp $"; +static const char RCSid[] = "$Id: ra_hexbit.c,v 3.6 2019/12/28 18:05:14 greg Exp $"; #endif /* * Create a 4x1 hex bitmap from a Radiance picture. */ -#include -#include - +#include "platform.h" #include "color.h" +#include "rtio.h" #include "resolu.h" char *progname; @@ -59,6 +58,8 @@ main( } /* assign threshold color */ setcolr(threshclr, thresh, thresh, thresh); + /* binary input */ + SET_FILE_BINARY(stdin); /* get our header */ if (checkheader(stdin, COLRFMT, NULL) < 0 || fgetresolu(&xmax, &ymax, stdin) < 0)