--- ray/src/px/ra_hexbit.c 2018/03/20 18:45:04 3.4 +++ ray/src/px/ra_hexbit.c 2018/04/17 17:42:28 3.5 @@ -1,5 +1,5 @@ #ifndef lint -static const char RCSid[] = "$Id: ra_hexbit.c,v 3.4 2018/03/20 18:45:04 greg Exp $"; +static const char RCSid[] = "$Id: ra_hexbit.c,v 3.5 2018/04/17 17:42:28 greg Exp $"; #endif /* * Create a 4x1 hex bitmap from a Radiance picture. @@ -8,6 +8,7 @@ static const char RCSid[] = "$Id: ra_hexbit.c,v 3.4 20 #include #include +#include "platform.h" #include "color.h" #include "rtio.h" #include "resolu.h" @@ -60,6 +61,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)