C++ vs. AIX -ansi

Nathan Myers ncm@nospam.cantrip.org
Wed Feb 7 16:04:00 GMT 2001


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


More information about the Libstdc++ mailing list