aboutsummaryrefslogtreecommitdiff
path: root/cutl/details
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2016-11-14 14:42:38 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2016-11-14 14:42:38 +0200
commit7945c1771bbb57125b3e3343fa84bfc314e0f4d4 (patch)
tree97b25a393cb5c65f9d58f31cb382b1b9c410586d /cutl/details
parent783efe3b1649f3426613e3c151e47c33a854010c (diff)
Fix few C++11-related warnings
Diffstat (limited to 'cutl/details')
-rw-r--r--cutl/details/config.hxx20
1 files changed, 20 insertions, 0 deletions
diff --git a/cutl/details/config.hxx b/cutl/details/config.hxx
index 2d0ec8d..c57c50e 100644
--- a/cutl/details/config.hxx
+++ b/cutl/details/config.hxx
@@ -5,6 +5,26 @@
#ifndef CUTL_DETAILS_CONFIG_HXX
#define CUTL_DETAILS_CONFIG_HXX
+// C++11 support.
+//
+#ifdef _MSC_VER
+# if _MSC_VER >= 1900
+# define LIBCUTL_CXX11
+# endif
+#else
+# if defined(__GXX_EXPERIMENTAL_CXX0X__) || __cplusplus >= 201103L
+# ifdef __clang__ // Pretends to be a really old __GNUC__ on some platforms.
+# define LIBCUTL_CXX11
+# elif defined(__GNUC__)
+# if (__GNUC__ == 4 && __GNUC_MINOR__ >= 9) || __GNUC__ > 4
+# define LIBCUTL_CXX11
+# endif
+# else
+# define LIBCUTL_CXX11
+# endif
+# endif
+#endif
+
#ifdef LIBCUTL_BUILD2
# ifdef _MSC_VER
# include <cutl/details/build2/config-vc.h>