From fabb92e487eb58e6ca0176d1d6db3572b0d8d26b Mon Sep 17 00:00:00 2001 From: Martin Moene Date: Sun, 15 Nov 2020 22:15:46 +0100 Subject: [PATCH] Replace _CPPUNWIND with _HAS_EXCEPTIONS(#27, thanks @DBJDBJ) See also https://github.com/martinmoene/nonstd-lite-project/issues/48 --- include/nonstd/expected.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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