--- ray/src/common/readoct.c 2003/07/21 22:30:17 2.21 +++ ray/src/common/readoct.c 2004/09/14 02:53:50 2.26 @@ -1,5 +1,5 @@ #ifndef lint -static const char RCSid[] = "$Id: readoct.c,v 2.21 2003/07/21 22:30:17 schorsch Exp $"; +static const char RCSid[] = "$Id: readoct.c,v 2.26 2004/09/14 02:53:50 greg Exp $"; #endif /* * readoct.c - routines to read octree information. @@ -10,13 +10,19 @@ static const char RCSid[] = "$Id: readoct.c,v 2.21 200 #include #include -#include "standard.h" #include "platform.h" +#include "rtprocess.h" +#include "standard.h" #include "octree.h" #include "object.h" #include "otypes.h" #include "resolu.h" +#ifdef getc_unlocked /* avoid horrendous overhead of flockfile */ +#undef getc +#define getc getc_unlocked +#endif + static double ogetflt(void); static long ogetint(int); static char *ogetstr(char *); @@ -201,7 +207,7 @@ gettree() /* get a pre-ordered octree */ default: octerror(USER, "damaged octree"); } - return NULL; /* pro forma return */ + return EMPTY; /* pro forma return */ }