summaryrefslogtreecommitdiff
path: root/config.h
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2018-11-12 03:37:32 -0500
committerJeffrey Walton <noloader@gmail.com>2018-11-12 03:37:32 -0500
commita0f3744ed424f08c0e5f2ae5c937ef4d3979a584 (patch)
treea570ad0837b5f5461f8f8c77cd0942f15b09082c /config.h
parent499a5e289dbed39029a1c36fe59447bf57504865 (diff)
downloadcryptopp-git-a0f3744ed424f08c0e5f2ae5c937ef4d3979a584.tar.gz
Use __cpp_lib_uncaught_exceptions for CRYPTOPP_CXX17_EXCEPTIONS
Also see https://bugs.llvm.org/show_bug.cgi?id=39631
Diffstat (limited to 'config.h')
-rw-r--r--config.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/config.h b/config.h
index 91a9db47..774c4815 100644
--- a/config.h
+++ b/config.h
@@ -1175,9 +1175,11 @@ NAMESPACE_END
// Clang and __EXCEPTIONS see http://releases.llvm.org/3.6.0/tools/clang/docs/ReleaseNotes.html
#if defined(__clang__)
# if __EXCEPTIONS && __has_feature(cxx_exceptions)
-# define CRYPTOPP_CXX17_EXCEPTIONS 1
+# if __cpp_lib_uncaught_exceptions
+# define CRYPTOPP_CXX17_EXCEPTIONS 1
+# endif
# endif
-#elif (CRYPTOPP_MSC_VERSION >= 1900) || (__INTEL_COMPILER >= 1800) || (CRYPTOPP_GCC_VERSION >= 60000)
+#elif (CRYPTOPP_MSC_VERSION >= 1900) || (__INTEL_COMPILER >= 1800) || (CRYPTOPP_GCC_VERSION >= 60000) || (__cpp_lib_uncaught_exceptions)
# define CRYPTOPP_CXX17_EXCEPTIONS 1
#endif // uncaught_exceptions compilers