diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2011-10-31 16:14:25 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2011-10-31 16:14:25 +0200 |
commit | 5840ef5f38cb6bec827358f2dcbc98e4fd20909d (patch) | |
tree | 22bbc1e98142dc35594d0d4eeb06b8dd4afbef77 /odb/gcc.hxx | |
parent | ce071a8e28304a3671ab361a27347e46f1b2af1b (diff) |
Add support for different plugin include paths in GCC 4.6.x
Diffstat (limited to 'odb/gcc.hxx')
-rw-r--r-- | odb/gcc.hxx | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/odb/gcc.hxx b/odb/gcc.hxx index 7967b74..fa37c67 100644 --- a/odb/gcc.hxx +++ b/odb/gcc.hxx @@ -33,8 +33,15 @@ extern "C" #include <cpplib.h> #include <cp/cp-tree.h> -#include <c-common.h> -#include <c-pragma.h> + +#if BUILDING_GCC_MAJOR > 4 || BUILDING_GCC_MAJOR == 4 && BUILDING_GCC_MINOR > 5 +# include <c-family/c-common.h> +# include <c-family/c-pragma.h> +#else +# include <c-common.h> +# include <c-pragma.h> +#endif + #include <diagnostic.h> } |