Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 Jul 2013 16:25:30 -0400
From:      Garrett Wollman <wollman@csail.mit.edu>
To:        Tijl Coosemans <tijl@freebsd.org>
Cc:        FreeBSD CURRENT <freebsd-current@freebsd.org>, freebsd-standards@freebsd.org, freebsd-toolchain@freebsd.org
Subject:   Re: CURRENT: CLANG 3.3 and -stad=c++11 and -stdlib=libc++: isnan()/isninf() oddity
Message-ID:  <20957.49978.73666.392417@khavrinen.csail.mit.edu>
In-Reply-To: <51DDC04B.6040209@FreeBSD.org>
References:  <20130710155809.0f589c22@thor.walstatt.dyndns.org> <CD51F125-AE9E-4461-916D-CF583002B47D@FreeBSD.org> <20130710183315.725dfde0@thor.walstatt.dyndns.org> <C8C94CF2-7D5A-471B-AD63-8E961AED6274@FreeBSD.org> <20130710203200.5359fd18@thor.walstatt.dyndns.org> <51DDC04B.6040209@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
<<On Wed, 10 Jul 2013 22:12:59 +0200, Tijl Coosemans <tijl@freebsd.org> said:

> I think isnan(double) and isinf(double) in math.h should only be
> visible if (_BSD_VISIBLE || _XSI_VISIBLE) && __ISO_C_VISIBLE < 1999.
> For C99 and higher there should only be the isnan/isinf macros.

I believe you are correct.  POSIX.1-2008 (which is aligned with C99)
consistently calls isnan() a "macro", and gives a pseudo-prototype of

	int isnan(real-floating x);

-GAWollman




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