diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2016-02-05 16:01:42 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2016-02-05 16:01:42 +0200 |
commit | 511dcf67322ad87fb32f97d1cf7725c129e83898 (patch) | |
tree | cfcbf8705fc208d101b8adbd270a425e7466d518 /odb/gcc.hxx | |
parent | d1b34452618d36eb486ff18b16f5d94acc6eeb07 (diff) |
Initial work to make ODB compatible with GCC 6
Diffstat (limited to 'odb/gcc.hxx')
-rw-r--r-- | odb/gcc.hxx | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/odb/gcc.hxx b/odb/gcc.hxx index c953047..858d685 100644 --- a/odb/gcc.hxx +++ b/odb/gcc.hxx @@ -7,6 +7,10 @@ #include <odb/gcc-fwd.hxx> +#if BUILDING_GCC_MAJOR >= 6 +# include <safe-ctype.h> // See gcc-fwd.hxx. +#endif + // GCC header includes to get the plugin and parse tree declarations. // The order is important and doesn't follow any kind of logic. // @@ -145,4 +149,10 @@ 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(). +// +#if BUILDING_GCC_MAJOR < 6 +# define anon_aggrname_p(X) ANON_AGGRNAME_P(X) +#endif + #endif // ODB_GCC_HXX |