diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2012-03-02 14:11:03 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2012-03-02 14:11:03 +0200 |
commit | 64cfe5e150e2d3e58dde1a6701d8c734c20e0848 (patch) | |
tree | 600adad0eb7f41cd5e1a4e34a28922db4024684f /odb/details/config.hxx | |
parent | 8a9e1081c026a092c7dfb28fbd079b88850c7233 (diff) |
Reimplement C++11 support to be header-only
This way, the same build of the runtime libraries can be used in both
C++98 and C++11 modes. This is important for when runtimes are installed
or packaged.
Diffstat (limited to 'odb/details/config.hxx')
-rw-r--r-- | odb/details/config.hxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/odb/details/config.hxx b/odb/details/config.hxx index fc47ec7..36a8e3a 100644 --- a/odb/details/config.hxx +++ b/odb/details/config.hxx @@ -23,7 +23,8 @@ # endif #else # include <odb/details/config.h> -# ifdef ODB_CXX11 +# if defined(__GXX_EXPERIMENTAL_CXX0X__) || __cplusplus >= 201103L +# define ODB_CXX11 # ifdef __GNUC__ # if __GNUC__ >= 4 && __GNUC_MINOR__ >= 6 # define ODB_CXX_NULLPTR |