--- ray/src/common/header.c 2009/05/21 18:08:43 2.25 +++ ray/src/common/header.c 2012/06/10 02:46:12 2.27 @@ -1,5 +1,5 @@ #ifndef lint -static const char RCSid[] = "$Id: header.c,v 2.25 2009/05/21 18:08:43 greg Exp $"; +static const char RCSid[] = "$Id: header.c,v 2.27 2012/06/10 02:46:12 greg Exp $"; #endif /* * header.c - routines for reading and writing information headers. @@ -31,6 +31,8 @@ static const char RCSid[] = "$Id: header.c,v 2.25 2009 #define MAXLINE 2048 +extern time_t timegm(struct tm *tm); + const char HDRSTR[] = "#?"; /* information header magic number */ const char FMTSTR[] = "FORMAT="; /* format identifier */ @@ -213,10 +215,6 @@ getheader( /* get header from file */ return(-1); if (buf[0] == '\n') return(0); -#ifdef MSDOS - if (buf[0] == '\r' && buf[1] == '\n') - return(0); -#endif if (buf[MAXLINE-2] != '\n') { ungetc(buf[MAXLINE-2], fp); /* prevent false end */ buf[MAXLINE-2] = '\0';