Disable uncaught_exception support for C++ 20 and later (PR #1187)

`std::uncaught_exception` was removed from C++ 20.
This commit is contained in:
Marcel Raad 2023-01-23 14:26:30 +01:00 committed by GitHub
parent 3668559ddf
commit c364032d4c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -39,7 +39,10 @@
// You may need to force include a C++ header on Android when using STLPort // You may need to force include a C++ header on Android when using STLPort
// to ensure _STLPORT_VERSION is defined // 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 #define CRYPTOPP_DISABLE_UNCAUGHT_EXCEPTION
#endif #endif