diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2020-06-17 11:22:11 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2020-06-17 11:22:11 +0200 |
commit | 060bb7eb4d008fbd4a9fa8ef7c5e33c9e483eb52 (patch) | |
tree | b0802cb55d5f7bf2cdea8b9158ec8281e184dfe9 /odb/gcc.hxx | |
parent | 1ca3ce471906f08d23f9163cdb8da884175ed331 (diff) |
Adjust to changes in GCC 10
Diffstat (limited to 'odb/gcc.hxx')
-rw-r--r-- | odb/gcc.hxx | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/odb/gcc.hxx b/odb/gcc.hxx index 9b644d7..af0e2a0 100644 --- a/odb/gcc.hxx +++ b/odb/gcc.hxx @@ -151,10 +151,13 @@ gcc_tree_code_name (gcc_tree_code_type tc) {return tree_code_name[tc];} #define DECL_CHAIN(x) TREE_CHAIN(x) #endif -// In GCC 6, ANON_AGGRNAME_P became anon_aggrname_p(). +// In GCC 6 ANON_AGGRNAME_P became anon_aggrname_p(). +// In GCC 10 anon_aggrname_p() became IDENTIFIER_ANON_P. // #if BUILDING_GCC_MAJOR < 6 -# define anon_aggrname_p(X) ANON_AGGRNAME_P(X) +# define IDENTIFIER_ANON_P(X) ANON_AGGRNAME_P(X) +#elif BUILDING_GCC_MAJOR < 10 +# define IDENTIFIER_ANON_P(X) anon_aggrname_p(X) #endif // In GCC 9: |