--- ray/src/common/portio.c 2003/02/25 02:47:21 2.7 +++ ray/src/common/portio.c 2004/09/14 02:53:50 2.11 @@ -1,5 +1,5 @@ #ifndef lint -static const char RCSid[] = "$Id: portio.c,v 2.7 2003/02/25 02:47:21 greg Exp $"; +static const char RCSid[] = "$Id: portio.c,v 2.11 2004/09/14 02:53:50 greg Exp $"; #endif /* * Portable i/o for binary files @@ -11,11 +11,15 @@ static const char RCSid[] = "$Id: portio.c,v 2.7 2003/ #include -#ifndef frexp -extern double frexp(); -#endif -#ifndef ldexp -extern double ldexp(); +#include "rtio.h" + +#include + +#ifdef getc_unlocked /* avoid horrendous overhead of flockfile */ +#undef getc +#undef putc +#define getc getc_unlocked +#define putc putc_unlocked #endif