Michael Mair <> writes:
[...]
> It definitely is valid as C90 or C99 + TC1 + TC2 code and
> everything in between, with the stipulation for pre-C99
> implementations that they must not define __cplusplus as
> macro identifier.
> If you have a pre-C99 implementation that does define
> __cplusplus, then you will get a diagnostic ("compiler
> error") from it.
[...]
Unless the implementation happens to support extern "C" as an
extension. I seriously doubt that any pre-C99 C implementations
define __cplusplus; if any did, they'd probably be trying to act like
C++ implementations, and would probably support extern "C".
Practically speaking, it's vanishingly unlikely to be a problem.
--
Keith Thompson (The_Other_Keith)
kst- <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <*> <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.