aboutsummaryrefslogtreecommitdiff
path: root/butl
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2016-12-16 20:18:34 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2016-12-16 20:18:34 +0300
commitca87eb4db4cabf3c46f9a599eaded138598f69a9 (patch)
tree0fb40881dfcb81561c3c3462d678c66afca8c32b /butl
parent7ca36cc5fc510e63f5caf830433231bbccca622f (diff)
Define BUTL_CXX17_UNCAUGHT_EXCEPTIONS for _LIBCPP_VERSION >= 1200
Diffstat (limited to 'butl')
-rw-r--r--butl/config6
1 files changed, 3 insertions, 3 deletions
diff --git a/butl/config b/butl/config
index 71ebd23..02209c5 100644
--- a/butl/config
+++ b/butl/config
@@ -31,10 +31,10 @@
#if defined(_MSC_VER)
# define BUTL_CXX17_UNCAUGHT_EXCEPTIONS
//
-// Clang's libc++ seems to have it for a while so we assume it's there (it
-// doesn't define a feature test macros).
+// Clang's libc++ seems to have it for a while (but not before 1200) so we
+// assume it's there from 1200 (it doesn't define a feature test macros).
//
-#elif defined(_LIBCPP_VERSION)
+#elif _LIBCPP_VERSION >= 1200
# define BUTL_CXX17_UNCAUGHT_EXCEPTIONS
//
// GCC libstdc++ has it since GCC 6 and it defines the feature test macro.