www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1997/08/11/04:54:40

Date: Mon, 11 Aug 1997 11:54:28 +0300 (EET DST)
From: Esa A E Peuha <peuha AT cc DOT helsinki DOT fi>
Reply-To: Esa DOT Peuha AT Helsinki DOT FI
To: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
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.SUN.3.91.970810173936.4651Q-100000@is>
Message-ID: <Pine.SOL.3.96.970811114512.18253C-100000@kruuna.Helsinki.FI>
MIME-Version: 1.0

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 -


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