Mail Archives: djgpp-workers/1997/08/11/04:54:40
On Sun, 10 Aug 1997, Eli Zaretskii wrote:
> If you disagree with what I said, please say so. Don't just punt
> because I've said it. I have said some pretty dumb things in my
> life, and I cannot be sure this isn't one of them.
>
Sorry. I should have said that you are probably right about the name of
the header file that should be in the docs.
> > but for some reason djgpp's prototype of `gettimeofday'
> > is in <time.h> and that's why I changed it.
>
> Right, but <sys/time.h> includes <time.h>, so including <sys/time.h>
> will also fetch the prototype of `gettimeofday'.
>
True, but including just <time.h> will allow a program to use
`gettimeofday' without warnings with djgpp, but not with Unix compilers,
which could cause incompatibilities. IMHO, the header file mentioned in
the docs should always actually contain the prototype, and not just
include another file that does so.
Esa Peuha
student of mathematics at the University of Helsinki
http://www.helsinki.fi/~peuha/
- Raw text -