mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-01-26 07:24:08 +08:00
c++: Update value of __cplusplus for C++20.
It's past time to update this macro to the specified value for C++20. libcpp/ChangeLog: * init.c (cpp_init_builtins): Update __cplusplus for C++20.
This commit is contained in:
parent
96a5c483af
commit
445430e16b
@ -542,7 +542,7 @@ cpp_init_builtins (cpp_reader *pfile, int hosted)
|
||||
{
|
||||
if (CPP_OPTION (pfile, lang) == CLK_CXX20
|
||||
|| CPP_OPTION (pfile, lang) == CLK_GNUCXX20)
|
||||
_cpp_define_builtin (pfile, "__cplusplus 201709L");
|
||||
_cpp_define_builtin (pfile, "__cplusplus 202002L");
|
||||
else if (CPP_OPTION (pfile, lang) == CLK_CXX17
|
||||
|| CPP_OPTION (pfile, lang) == CLK_GNUCXX17)
|
||||
_cpp_define_builtin (pfile, "__cplusplus 201703L");
|
||||
|
Loading…
Reference in New Issue
Block a user