delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2003/10/26/12:24:42

X-Authentication-Warning: delorie.com: mail set sender to djgpp-workers-bounces using -f
Date: Sun, 26 Oct 2003 19:19:08 +0200
From: "Eli Zaretskii" <eliz AT elta DOT co DOT il>
Sender: halo1 AT zahav DOT net DOT il
To: Richard Dawe <rich AT phekda DOT freeserve DOT co DOT uk>
Message-Id: <1438-Sun26Oct2003191907+0200-eliz@elta.co.il>
X-Mailer: emacs 21.3.50 (via feedmail 8 I) and Blat ver 1.8.9
CC: djgpp-workers AT delorie DOT com
In-reply-to: <3F9BB1FE.43B877E9@phekda.freeserve.co.uk> (message from Richard
Dawe on Sun, 26 Oct 2003 11:37:34 +0000)
Subject: Re: Clash between math.h and ieeefp.h [PATCH]
References: <E1ADTj5-0001KS-00 AT phekda DOT freeserve DOT co DOT uk> <9743-Sat25Oct2003233921+0200-eliz AT elta DOT co DOT il> <3F9BB1FE DOT 43B877E9 AT phekda DOT freeserve DOT co DOT uk>
Reply-To: djgpp-workers AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp-workers AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

> Date: Sun, 26 Oct 2003 11:37:34 +0000
> From: Richard Dawe <rich AT phekda DOT freeserve DOT co DOT uk>
> > 
> > I'm probably missing something here: why does ieeefp.h declare those
> > functions, and where/when is ieeefp.h supposed to be used?
> 
> As far as I can tell, it's for libm and the test suite.

If ieeefp.h is only for libm, and is not mandated by any standard we
want to follow nor is present on other platforms, then any solution
that is the easiest for you will do.

> > Isn't the following trick enough to solve the problem?
> > 
> >   extern int (isnan)(double);
> > 
> > That is, surround the function's name with parens.
> 
> Yes, that works.

If isnan is supposed to be a function as well as a macro (not unlike
the ctype macros) and is described like that by some standard, then we
will need this trick anyway.

- Raw text -


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