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 15, 2020
1 parent fac1a20 commit 9a240bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/nonstd/string_view.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
// Control presence of exception handling (try and auto discover):

#ifndef nssv_CONFIG_NO_EXCEPTIONS
# if defined(__cpp_exceptions) || defined(__EXCEPTIONS) || defined(_CPPUNWIND)
# if defined(__cpp_exceptions) || defined(__EXCEPTIONS) || (_HAS_EXCEPTIONS != 0)
# define nssv_CONFIG_NO_EXCEPTIONS 0
# else
# define nssv_CONFIG_NO_EXCEPTIONS 1
Expand Down

0 comments on commit 9a240bb

Please sign in to comment.