This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: C++ vs. AIX -ansi
- To: libstdc++ at gcc dot gnu dot org
- Subject: Re: C++ vs. AIX -ansi
- From: Nathan Myers <ncm at nospam dot cantrip dot org>
- Date: Wed, 7 Feb 2001 16:03:43 -0800
- References: <mark@codesourcery.com> <200102060633.BAA22290@mal-ach.watson.ibm.com>
- Reply-To: libstdc++ at gcc dot gnu dot org
On Tue, Feb 06, 2001 at 01:33:47AM -0500, David Edelsohn wrote:
> >>>>> Mark Mitchell writes:
> _ANSI_SOURCE is defined in tm.h CPP_SPEC. If there is a way to
> distinguish the language, we can enable the macro only for C. Of course
> if one preprocessed a file with C and ran the preprocessed output through
> C++, things would be wrong.
You can't expect code preprocessed with C to compile right in C++ anyway.
Not least, you won't have got the "#ifdef __cplusplus" bits right.
Nathan Myers
ncm at cantrip dot org