Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 26 Jul 2013 11:51:43 +0100
From:      David Chisnall <theraven@FreeBSD.org>
To:        Tijl Coosemans <tijl@coosemans.org>
Cc:        svn-src-head@FreeBSD.org, svn-src-all@FreeBSD.org, src-committers@FreeBSD.org
Subject:   Re: svn commit: r253563 - head/contrib/libstdc++/include/c_std
Message-ID:  <B2D786F9-E807-4F9D-89BA-A2B244B87C99@FreeBSD.org>
In-Reply-To: <20130726122654.19448832@kalimero.tijl.coosemans.org>
References:  <201307231023.r6NANhGf065713@svn.freebsd.org> <20130725201948.2f5ae808@kalimero.tijl.coosemans.org> <7D9DA326-0F32-44D2-92F9-EED0751F9AE0@FreeBSD.org> <20130726122654.19448832@kalimero.tijl.coosemans.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--Apple-Mail=_307F7165-6576-4650-A30E-01E9F347DD08
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=us-ascii

On 26 Jul 2013, at 11:26, Tijl Coosemans <tijl@coosemans.org> wrote:

> On Fri, 26 Jul 2013 10:43:07 +0100 David Chisnall wrote:
>> On 25 Jul 2013, at 19:19, Tijl Coosemans <tijl@coosemans.org> wrote:
>>> This also
>>> broke compilation of C code with -D_XOPEN_SOURCE=3D500.
>>=20
>> Do you have a test case for this?
>=20
> % cc -c test.c -D_XOPEN_SOURCE=3D500 -Wall -std=3Dgnu89
> test.c:5:10: warning: implicit declaration of function 'isnan'
>      [-Wimplicit-function-declaration]
>        return( isnan( d ));
>                ^
> 1 warning generated.
>=20
> The isnan function is part of SUSv2:
> http://pubs.opengroup.org/onlinepubs/7990989775/xsh/isnan.html
>=20
> _XOPEN_SOURCE is handled in sys/cdefs.h. It sets the following macros:
> #define __XSI_VISIBLE           500
> #define __POSIX_VISIBLE         199506
> #define __ISO_C_VISIBLE         1990

So, isnan and isinf should be visible in functions when in =
__ISO_C_VISIBLE < 1999 and __XSI_VISIBLE < 600,=20
and __XSI_VISIBLE  >=3D 500?

David


--Apple-Mail=_307F7165-6576-4650-A30E-01E9F347DD08
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
	filename=signature.asc
Content-Type: application/pgp-signature;
	name=signature.asc
Content-Description: Message signed with OpenPGP using GPGMail

-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.18 (Darwin)
Comment: GPGTools - http://gpgtools.org

iQIcBAEBAgAGBQJR8lTAAAoJEKx65DEEsqIdFyMQAJhOBfXumc2WG7MhHwFZZhAz
1Ue2dFCvFMQWhG+tI++XrL2B8GyN/Tk2HEbLbohxfMlOEzJmsxWFF92xnOQyZ5kF
We2ACKUKRVtsB5SvmudZJWuqhahJSi++95D8D+Tballi08LSugpTSfgCsEV7TfqN
AtKYLYd4Ao9F1xZBQ1Mcr0EcayKh40/2QkOSaKgXzWl6obaT40i4tie/EVgvGCJv
VGGR1gNkZN1aXAsVJMNh1gIqKgL954Nq2z8pqAGmP+kvy1sdp6KgUIUnxN3hEC8B
WjMJKgZijDgM7MXj+iVOhXS0XTtenHB51MxBr/l6GHpkd3Pnc+RwERDXdZHVQW3m
5KfYoYBnYPvnoT5uGTrYKMmboqBVeme4QZek5svEosOtiRnc6pks5KS6e4seXtCw
70oclQj92xxMqYNkiohyctpcpSIMaByn+/+91B8PLPsBzfVsjftopuuFnFNJXmyt
0SWnTnQqHWJN/XShTqSzGxKYiLlFosKKyhJBZESX0CwsfEgCCTHPBvClvv9I6HIB
z8CEtJGT+CmR48X95GwgdkHnr7bRzp6uaKK6qhT2ggHviAk9JXGBNFQk5a6VI52w
OFbotnMYj3UnqNvrZo9u3ERSQ+8+Ukiwrnmngjp72GEFYYsj02ZWT6AOfpZnmUO5
Hhj26Ipe1e8zX1ZwBWGx
=Sh4z
-----END PGP SIGNATURE-----

--Apple-Mail=_307F7165-6576-4650-A30E-01E9F347DD08--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?B2D786F9-E807-4F9D-89BA-A2B244B87C99>