This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: Bug#126703: g++-3.0: <stdio.h> defines _GNU_SOURCE with g++-3.0
- From: Phil Edwards <pedwards at disaster dot jaj dot com>
- To: "Martin v. Loewis" <martin at v dot loewis dot de>
- Cc: doko at cs dot tu-berlin dot de, libstdc++ at gcc dot gnu dot org, mdz at debian dot org, phil at fifi dot org, debian-gcc at lists dot debian dot org
- Date: Mon, 31 Dec 2001 12:35:02 -0500
- Subject: Re: Bug#126703: g++-3.0: <stdio.h> defines _GNU_SOURCE with g++-3.0
- References: <87vges9d2z.fsf@ceramic.fifi.org> <200112281033.fBSAX7T02002@mira.informatik.hu-berlin.de> <20011230030549.GQ840@alcor.net> <200112300926.fBU9Qd801313@mira.informatik.hu-berlin.de> <20011231001241.GE1965@alcor.net> <200112310026.fBV0QGU05421@mira.informatik.hu-berlin.de> <15407.45934.959116.269917@gargle.gargle.HOWL> <20011230231359.A5563@disaster.jaj.com> <200112310947.fBV9loZ01555@mira.informatik.hu-berlin.de>
On Mon, Dec 31, 2001 at 10:47:50AM +0100, Martin v. Loewis wrote:
> > possibly include a glibc header, otherwise certain C++ programs will
> > simply fail out of the box.
>
> I don't believe that this is true.
[...]
> > http://gcc.gnu.org/ml/libstdc++/2000-12/msg00215.html
Well, there's my example. :-)
> The code in question reads
>
> # if _GLIBCPP_HAVE_LLDIV_T
> typedef lldiv_t _CPP_lldiv_t_capture;
> # endif
>
> Now, the problem is that _GLIBCPP_HAVE_LLDIV_T is always defined.
You are aware that this code is currently unused by default, and unused
by Debian, right? Only one of {c,c_std,c_shadow} is used.
Phil
--
If ye love wealth greater than liberty, the tranquility of servitude greater
than the animating contest for freedom, go home and leave us in peace. We seek
not your counsel, nor your arms. Crouch down and lick the hand that feeds you;
and may posterity forget that ye were our countrymen. - Samuel Adams