diff --git a/include/nonstd/expected.hpp b/include/nonstd/expected.hpp index 69bee75..8cd2cc4 100644 --- a/include/nonstd/expected.hpp +++ b/include/nonstd/expected.hpp @@ -69,7 +69,7 @@ // Control presence of exception handling (try and auto discover): #ifndef nsel_CONFIG_NO_EXCEPTIONS -# if defined(__cpp_exceptions) || defined(__EXCEPTIONS) || defined(_CPPUNWIND) +# if defined(__cpp_exceptions) || defined(__EXCEPTIONS) || (_HAS_EXCEPTIONS != 0) # define nsel_CONFIG_NO_EXCEPTIONS 0 # else # define nsel_CONFIG_NO_EXCEPTIONS 1