Skip to content

Commit

Permalink
Disable uncaught_exception support for C++ 20 and later (PR weidai11#…
Browse files Browse the repository at this point in the history
…1187)

`std::uncaught_exception` was removed from C++ 20.
  • Loading branch information
MarcelRaad authored Jan 23, 2023
1 parent 3668559 commit c364032
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion config_cxx.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit c364032

Please sign in to comment.