Commit 32fe396e by Rainer Orth Committed by Rainer Orth

Properly define __cplusplus (PR libstdc++-v3/1773)

	PR libstdc++/1773
	* init.c (cpp_init_builtins): Define __cplusplus 19971L.

From-SVN: r177877
parent 7afac110
2011-08-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
PR libstdc++/1773
* init.c (cpp_init_builtins): Define __cplusplus 19971L.
2011-08-18 Joseph Myers <joseph@codesourcery.com> 2011-08-18 Joseph Myers <joseph@codesourcery.com>
* include/cpplib.h (struct cpp_options): Fix typo. * include/cpplib.h (struct cpp_options): Fix typo.
......
...@@ -455,7 +455,7 @@ cpp_init_builtins (cpp_reader *pfile, int hosted) ...@@ -455,7 +455,7 @@ cpp_init_builtins (cpp_reader *pfile, int hosted)
_cpp_define_builtin (pfile, "__STDC__ 1"); _cpp_define_builtin (pfile, "__STDC__ 1");
if (CPP_OPTION (pfile, cplusplus)) 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) else if (CPP_OPTION (pfile, lang) == CLK_ASM)
_cpp_define_builtin (pfile, "__ASSEMBLER__ 1"); _cpp_define_builtin (pfile, "__ASSEMBLER__ 1");
else if (CPP_OPTION (pfile, lang) == CLK_STDC94) else if (CPP_OPTION (pfile, lang) == CLK_STDC94)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment