--- ray/src/rt/data.c 2003/05/13 17:58:33 2.17 +++ ray/src/rt/data.c 2003/07/16 01:32:53 2.22 @@ -1,5 +1,5 @@ #ifndef lint -static const char RCSid[] = "$Id: data.c,v 2.17 2003/05/13 17:58:33 greg Exp $"; +static const char RCSid[] = "$Id: data.c,v 2.22 2003/07/16 01:32:53 greg Exp $"; #endif /* * data.c - routines dealing with interpolated data. @@ -7,20 +7,20 @@ static const char RCSid[] = "$Id: data.c,v 2.17 2003/0 #include "copyright.h" -#include "standard.h" +#include +#include "standard.h" +#include "platform.h" #include "color.h" - #include "resolu.h" - #include "data.h" /* picture memory usage before warning */ #ifndef PSIZWARN -#ifdef BIGMEM -#define PSIZWARN 5000000 -#else +#ifdef SMLMEM #define PSIZWARN 1500000 +#else +#define PSIZWARN 5000000 #endif #endif @@ -162,7 +162,7 @@ char *pname; COLR *scanin; int sl, ns; RESOLU inpres; - FLOAT loc[2]; + RREAL loc[2]; int y; register int x, i; register DATARRAY *pp; @@ -184,9 +184,7 @@ char *pname; sprintf(errmsg, "cannot open picture file \"%s\"", pfname); error(SYSTEM, errmsg); } -#ifdef MSDOS - setmode(fileno(fp), O_BINARY); -#endif + SET_FILE_BINARY(fp); /* get dimensions */ inpaspect = 1.0; getheader(fp, headaspect, (char *)&inpaspect);