[v3] Handle different versions of Solaris 8 <iso/math_iso.h>, <iso/stdlib_iso.h>

Rainer Orth ro@CeBiTec.Uni-Bielefeld.DE
Fri Aug 26 15:18:00 GMT 2011

Hi Paolo,

>> exactly: just g++ -D__cplusplus=1 or something.
> Irrespective of what the Standard strictly says, I think the latter would only make sense if it would allow the user to return, consistently, to the pre-4.7 behavior, for compatibility reasons or something. Is it the case? Is the above enough for that? Or some of the changes which went in are effective anyway even if __cplusplus is reverted by hand to 1? I think this is the question deciding what we really want to do.

I'm pretty sure this is the case for Solaris.  The other changes we've
made to support __cplusplus 199711L were no-ops without the last one to
change __cplusplus from 1 to the C++ 98 value.  So, redefining
__cplusplus to 1 should return us back to the old status.


Rainer Orth, Center for Biotechnology, Bielefeld University

More information about the Libstdc++ mailing list