aboutsummaryrefslogtreecommitdiff
path: root/odb/details/config.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'odb/details/config.hxx')
-rw-r--r--odb/details/config.hxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/odb/details/config.hxx b/odb/details/config.hxx
index c8f6239..c36b163 100644
--- a/odb/details/config.hxx
+++ b/odb/details/config.hxx
@@ -27,7 +27,9 @@
# include <odb/details/config.h>
# if defined(__GXX_EXPERIMENTAL_CXX0X__) || __cplusplus >= 201103L
# define ODB_CXX11
-# ifdef __GNUC__
+# ifdef __clang__ // Pretends to be a really old __GNUC__ on some platforms.
+# define ODB_CXX11_NULLPTR
+# elif defined(__GNUC__)
# if (__GNUC__ == 4 && __GNUC_MINOR__ >= 6) || __GNUC__ > 4
# define ODB_CXX11_NULLPTR
# endif