Mail Archives: djgpp-workers/1997/08/11/06:26:16
On Mon, 11 Aug 1997, Esa A E Peuha wrote:
> > 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.
I don't have anything against moving the prototype of `gettimeofday' to
<sys/time.h>. DJ, is there any reason why we shouldn't?
- Raw text -