summaryrefslogtreecommitdiff
path: root/config_cxx.h
diff options
context:
space:
mode:
authorMarcel Raad <MarcelRaad@users.noreply.github.com>2023-01-23 14:26:30 +0100
committerGitHub <noreply@github.com>2023-01-23 08:26:30 -0500
commitc364032d4c9e025704cf7caf379e8880ad87a59a (patch)
tree80262a08aa1df27640e57d54696f3448e6f4aaa0 /config_cxx.h
parent3668559ddf4eb5a72ae7b1c6b9fe600858efb12a (diff)
downloadcryptopp-git-c364032d4c9e025704cf7caf379e8880ad87a59a.tar.gz
Disable uncaught_exception support for C++ 20 and later (PR #1187)
`std::uncaught_exception` was removed from C++ 20.
Diffstat (limited to 'config_cxx.h')
-rw-r--r--config_cxx.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/config_cxx.h b/config_cxx.h
index 95093de7..16b41947 100644
--- a/config_cxx.h
+++ b/config_cxx.h
@@ -39,7 +39,10 @@
// You may need to force include a C++ header on Android when using STLPort
// to ensure _STLPORT_VERSION is defined
-#if (defined(_MSC_VER) && _MSC_VER <= 1300) || defined(__MWERKS__) || (defined(_STLPORT_VERSION) && ((_STLPORT_VERSION < 0x450) || defined(_STLP_NO_UNCAUGHT_EXCEPT_SUPPORT)))
+#if (defined(_MSC_VER) && _MSC_VER <= 1300) || \
+ defined(__MWERKS__) || \
+ (defined(_STLPORT_VERSION) && ((_STLPORT_VERSION < 0x450) || defined(_STLP_NO_UNCAUGHT_EXCEPT_SUPPORT)) || \
+ (__cplusplus >= 202002L))
#define CRYPTOPP_DISABLE_UNCAUGHT_EXCEPTION
#endif