[Bug libstdc++/1773] __cplusplus defined to 1, should be 199711L
bkoz at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Wed Mar 28 16:49:00 GMT 2007
------- Comment #60 from bkoz at gcc dot gnu dot org 2007-03-28 17:48 -------
Mine.
Current libcpp patch only is:
Index: init.c
===================================================================
--- init.c (revision 123196)
+++ init.c (working copy)
@@ -376,7 +376,7 @@
}
if (CPP_OPTION (pfile, cplusplus))
- _cpp_define_builtin (pfile, "__cplusplus 1");
+ _cpp_define_builtin (pfile, "__cplusplus 199711L");
else if (CPP_OPTION (pfile, lang) == CLK_ASM)
_cpp_define_builtin (pfile, "__ASSEMBLER__ 1");
else if (CPP_OPTION (pfile, lang) == CLK_STDC94)
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=1773
More information about the Gcc-bugs
mailing list