aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2012-04-29 11:49:06 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2012-04-29 11:49:06 +0200
commit6f5d1e88c5afcb96560713b1206aaa4c4ab98d7c (patch)
tree4bc610119b6da325319834cc34d49ad5fbb2d2fc
parent3ffb8d30685b9dbc51e08e230fe0ecf15bb3a946 (diff)
Include header that defines version macros before checking them
-rw-r--r--odb/gcc.hxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/odb/gcc.hxx b/odb/gcc.hxx
index 3f9cd8c..89270b3 100644
--- a/odb/gcc.hxx
+++ b/odb/gcc.hxx
@@ -16,12 +16,13 @@
#include <cstdlib> // Include before GCC poisons some declarations.
+#include <bversion.h>
+
#if BUILDING_GCC_MAJOR == 4 && BUILDING_GCC_MINOR <= 6
extern "C"
{
#endif
-#include <bversion.h>
#include <gcc-plugin.h>
#include <config.h>