Skip to content

Commit

Permalink
Replace _CPPUNWIND with _HAS_EXCEPTIONS(#27, thanks @DBJDBJ)
Browse files Browse the repository at this point in the history
  • Loading branch information
martinmoene committed Nov 15, 2020
1 parent aa59067 commit c5c7fe1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion include/nonstd/expected.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,10 @@
// Control presence of exception handling (try and auto discover):

#ifndef nsel_CONFIG_NO_EXCEPTIONS
# if defined(__cpp_exceptions) || defined(__EXCEPTIONS) || defined(_CPPUNWIND)
# if _WIN32
# include <vcruntime.h> // for _HAS_EXCEPTIONS
# endif
# if defined(__cpp_exceptions) || defined(__EXCEPTIONS) || (_HAS_EXCEPTIONS)
# define nsel_CONFIG_NO_EXCEPTIONS 0
# else
# define nsel_CONFIG_NO_EXCEPTIONS 1
Expand Down

0 comments on commit c5c7fe1

Please sign in to comment.