summaryrefslogtreecommitdiff
path: root/cpp/include/IceUtil/Config.h
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/include/IceUtil/Config.h')
-rw-r--r--cpp/include/IceUtil/Config.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/cpp/include/IceUtil/Config.h b/cpp/include/IceUtil/Config.h
index ea9371ca845..a18a473f3fd 100644
--- a/cpp/include/IceUtil/Config.h
+++ b/cpp/include/IceUtil/Config.h
@@ -89,6 +89,17 @@
#endif
//
+// Check for C++ 11 support
+//
+
+#if (defined(__GNUC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 5)) && \
+ defined(__GXX_EXPERIMENTAL_CXX0X__)) || \
+ (defined(__clang__) && (__clang_major__ >= 4) && __cplusplus >= 201103) || \
+ (defined(_MSC_VER) && (_MSC_VER >= 1600))
+# define ICE_CPP11 1
+#endif
+
+//
// Let's use these extensions with IceUtil:
//
#ifdef ICE_UTIL_API_EXPORTS