diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2014-01-18 08:34:29 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2014-01-18 08:34:29 +0200 |
commit | ea413b91d756fa5fada2e18fd45b33484d78935f (patch) | |
tree | a6c98cd8672a8bcea4afced5a10efc115aa15744 | |
parent | e1b2f96d7801f61d8d29762ef021241fd43aa679 (diff) |
Fix incorrect GCC version test (harmless until 5.0.0 is released)
-rw-r--r-- | odb/details/config.hxx | 4 |
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 |