aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2014-01-18 08:34:29 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2014-01-18 08:37:41 +0200
commitd4b1352f09d2d4dbdcefb1896bc964ef3fc4fbed (patch)
treef77002c7f2eaedad2af71b7b08e543df23b2b083
parentd53be7bd218ef2cb53759b0d5d0e7d9596435eaa (diff)
Fix incorrect GCC version test (harmless until 5.0.0 is released)
-rw-r--r--odb/details/config.hxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/odb/details/config.hxx b/odb/details/config.hxx
index b8690cc..0b80bad 100644
--- a/odb/details/config.hxx
+++ b/odb/details/config.hxx
@@ -14,7 +14,7 @@
# define LIBODB_STATIC_LIB
# if defined(__GXX_EXPERIMENTAL_CXX0X__) || __cplusplus >= 201103L
# define ODB_CXX11
-# if __GNUC__ >= 4 && __GNUC_MINOR__ >= 6
+# if (__GNUC__ == 4 && __GNUC_MINOR__ >= 6) || __GNUC__ > 4
# define ODB_CXX11_NULLPTR
# endif
# define ODB_CXX11_DELETED_FUNCTION
@@ -28,7 +28,7 @@
# if defined(__GXX_EXPERIMENTAL_CXX0X__) || __cplusplus >= 201103L
# define ODB_CXX11
# ifdef __GNUC__
-# if __GNUC__ >= 4 && __GNUC_MINOR__ >= 6
+# if (__GNUC__ == 4 && __GNUC_MINOR__ >= 6) || __GNUC__ > 4
# define ODB_CXX11_NULLPTR
# endif
# else