Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 26 Jul 2013 12:26:54 +0200
From:      Tijl Coosemans <tijl@coosemans.org>
To:        David Chisnall <theraven@FreeBSD.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:  <20130726122654.19448832@kalimero.tijl.coosemans.org>
In-Reply-To: <7D9DA326-0F32-44D2-92F9-EED0751F9AE0@FreeBSD.org>
References:  <201307231023.r6NANhGf065713@svn.freebsd.org> <20130725201948.2f5ae808@kalimero.tijl.coosemans.org> <7D9DA326-0F32-44D2-92F9-EED0751F9AE0@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
--Sig_/r7E=hNkrA_0GDL+DKgKSgXH
Content-Type: multipart/mixed; boundary="MP_/0sT8hdRwNYiLTNcS=tosJed"

--MP_/0sT8hdRwNYiLTNcS=tosJed
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

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?

% 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.

The isnan function is part of SUSv2:
http://pubs.opengroup.org/onlinepubs/7990989775/xsh/isnan.html

_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

--MP_/0sT8hdRwNYiLTNcS=tosJed--

--Sig_/r7E=hNkrA_0GDL+DKgKSgXH
Content-Type: application/pgp-signature; name=signature.asc
Content-Disposition: attachment; filename=signature.asc

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.20 (FreeBSD)

iF4EAREIAAYFAlHyTvMACgkQfoCS2CCgtiu2rQD+PemdXObmxkZLmC6xSzDrEW0T
IfHslMljqA2p9QqA97YA/09d2xUzkJrPxyqfc7xavYZPjOs7GCHBBgqtNI7oDdVx
=kEnp
-----END PGP SIGNATURE-----

--Sig_/r7E=hNkrA_0GDL+DKgKSgXH--



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