Skip to content

Commit

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

#ifndef nsvp_CONFIG_NO_EXCEPTIONS
# if defined(__cpp_exceptions) || defined(__EXCEPTIONS) || defined(_CPPUNWIND)
# if _MSC_VER
# include <cstddef> // for _HAS_EXCEPTIONS
# endif
# if defined(__cpp_exceptions) || defined(__EXCEPTIONS) || (_HAS_EXCEPTIONS)
# define nsvp_CONFIG_NO_EXCEPTIONS 0
# else
# define nsvp_CONFIG_NO_EXCEPTIONS 1
Expand Down

0 comments on commit 0e7e5e0

Please sign in to comment.