Skip to content

Commit f339d2f

Browse files
committedAug 5, 2024·
Make sure nsel_CONFIG_WIN32_LEAN_AND_MEAN and nsel_CONFIG_NO_EXCEPTIONS_SEH are defined (#69)
1 parent 884e1f5 commit f339d2f

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed
 

‎include/nonstd/expected.hpp

+6-2
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,8 @@
8585

8686
#if !defined(nsel_CONFIG_WIN32_LEAN_AND_MEAN) && defined(_MSC_VER)
8787
# define nsel_CONFIG_WIN32_LEAN_AND_MEAN 1
88+
#else
89+
# define nsel_CONFIG_WIN32_LEAN_AND_MEAN 0
8890
#endif
8991

9092
// Control presence of C++ exception handling (try and auto discover):
@@ -102,8 +104,10 @@
102104

103105
// at default use SEH with MSVC for no C++ exceptions
104106

105-
#ifndef nsel_CONFIG_NO_EXCEPTIONS_SEH
106-
# define nsel_CONFIG_NO_EXCEPTIONS_SEH ( nsel_CONFIG_NO_EXCEPTIONS && _MSC_VER )
107+
#if !defined(nsel_CONFIG_NO_EXCEPTIONS_SEH) && defined(_MSC_VER)
108+
# define nsel_CONFIG_NO_EXCEPTIONS_SEH nsel_CONFIG_NO_EXCEPTIONS
109+
#else
110+
# define nsel_CONFIG_NO_EXCEPTIONS_SEH 0
107111
#endif
108112

109113
// C++ language version detection (C++23 is speculative):

0 commit comments

Comments
 (0)
Please sign in to comment.