This is the mail archive of the
libstdc++@sources.redhat.com
mailing list for the libstdc++ project.
Re: __cplusplus
- To: libstdc++ at sources dot redhat dot com
- Subject: Re: __cplusplus
- From: Zachary Alexander Weinberg <zackw at Stanford dot EDU>
- Date: Wed, 1 Nov 2000 16:09:15 -0800 (PST)
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.
(The snippets posted appear to be attempting to be standards compliant,
though - perhaps there is a simple fix. I bet the parse errors are
coming from a macro definition for getc.)
zw