Skip to content

Commit

Permalink
Make sure nsel_CONFIG_WIN32_LEAN_AND_MEAN and nsel_CONFIG_NO_EXCEPTIO…
Browse files Browse the repository at this point in the history
…NS_SEH are defined (#69)
  • Loading branch information
martinmoene committed Aug 5, 2024
1 parent 884e1f5 commit f339d2f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions include/nonstd/expected.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@

#if !defined(nsel_CONFIG_WIN32_LEAN_AND_MEAN) && defined(_MSC_VER)
# define nsel_CONFIG_WIN32_LEAN_AND_MEAN 1
#else
# define nsel_CONFIG_WIN32_LEAN_AND_MEAN 0
#endif

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

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

#ifndef nsel_CONFIG_NO_EXCEPTIONS_SEH
# define nsel_CONFIG_NO_EXCEPTIONS_SEH ( nsel_CONFIG_NO_EXCEPTIONS && _MSC_VER )
#if !defined(nsel_CONFIG_NO_EXCEPTIONS_SEH) && defined(_MSC_VER)
# define nsel_CONFIG_NO_EXCEPTIONS_SEH nsel_CONFIG_NO_EXCEPTIONS
#else
# define nsel_CONFIG_NO_EXCEPTIONS_SEH 0
#endif

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

0 comments on commit f339d2f

Please sign in to comment.