This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: cpplib: Fix __cplusplus definition
- To: Phil Edwards <pedwards at disaster dot jaj dot com>
- Subject: Re: cpplib: Fix __cplusplus definition
- From: Neil Booth <neil at daikokuya dot demon dot co dot uk>
- Date: Mon, 29 Jan 2001 18:49:04 +0000
- Cc: gcc-patches at gcc dot gnu dot org, libstdc++ at gcc dot gnu dot org
- References: <20010126075346.B30599@daikokuya.demon.co.uk> <fln1ceplv9.fsf@sel.cmla.ens-cachan.fr> <20010126104110.A20555@disaster.jaj.com> <20010126152343.A22079@disaster.jaj.com> <20010129093910.A6910@disaster.jaj.com>
Phil Edwards wrote:-
> While cleaning out my mailbox, I found that old discussion that Neil
> discovered in Google. There was also a followup from Zack at the time:
>
> > Would extending STDC_0_IN_SYSTEM_HEADERS help here? Presently on
> > Solaris cpp causes __STDC__ to be 1 in user code and 0 in system headers.
> > It would be easy to apply that to __cplusplus as well, so it would be
> > 199711L in user code and 1 or 0 in the headers.
>
> Neil, did you see this in the archives? Does it still apply?
No and yes.
> Is this the way we want to go? I'm still wavering between "try to make
> use of their attempt at standards compliance" and "just subvert the whole
> mess to our indomitable will".
I don't know. I'd rather we don't hack it if possible.
I don't understand what the STDC_0... macro works around either - I've
never used a Solaris box.
Neil.