On 29/11/11 19:21, Russell Bryant wrote:
How'd you chose the define to check for? In some other code I
work on,
we have this everywhere:
#if defined(__cplusplus) || defined(c_plusplus)
but I don't know where it originated. It just gets copied from
elsewhere in the same code base now.
http://docs.oracle.com/cd/E19205-01/819-5267/bkaep/index.html
Apparently pre-ANSI standardisation C++ compilers used to define
c_plusplus. The standard form is __cplusplus. As discussed on IRC, I
don't think we care about compilers from before C++98.
- ZB