Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 12 Jun 2010 13:35:49 -0400
From:      David Schultz <das@FreeBSD.ORG>
To:        Florian Forster <octo@verplant.org>
Cc:        freebsd-standards@FreeBSD.ORG
Subject:   Re: isnan(3) not available in C99/POSIX2001 mode
Message-ID:  <20100612173549.GA5878@zim.MIT.EDU>
In-Reply-To: <20090504112916.GI25815@verplant.org>
References:  <20090504112916.GI25815@verplant.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, May 04, 2009, Florian Forster wrote:
> Hi,
> 
> I'm having problems compiling a C99 program and I believe this to be a
> problem in FreeBSD's libc.
> 
> In <math.h> the macro `isnan' is defined. The macro checks the size of
> its argument to determine whether it's a float, double, or long double
> and calls `isnanf', `isnan', or `__isnanl' respectively. The problem is
> that the `isnan' macro is defined if `__ISO_C_VISIBLE >= 1999' but
> `isnanf' is only declared if `__BSD_VISIBLE' is defined. In my case (C99
> and POSIX 2001 requested) this results in a syntax error:

This is fixed in 9-CURRENT. Sorry for the delay.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100612173549.GA5878>