delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1997/08/11/06:26:16

Date: Mon, 11 Aug 1997 13:25:45 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Esa DOT Peuha AT Helsinki DOT FI
cc: DJ Delorie <dj AT delorie DOT com>, djgpp-workers AT delorie DOT com
Subject: Re: [peuha AT cc DOT helsinki DOT fi: Patches for libc.inf sources]
In-Reply-To: <Pine.SOL.3.96.970811114512.18253C-100000@kruuna.Helsinki.FI>
Message-ID: <Pine.SUN.3.91.970811132410.7085H-100000@is>
MIME-Version: 1.0

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019