Skip to content

Commit 52f2b61

Browse files
authored
optional.hpp: use #if defined(_MSC_VER) to avoid -Wundef warning (#65, thanks @eepp)
Signed-off-by: Philippe Proulx <[email protected]>
1 parent 0854335 commit 52f2b61

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/nonstd/optional.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
// Control presence of exception handling (try and auto discover):
4848

4949
#ifndef optional_CONFIG_NO_EXCEPTIONS
50-
# if _MSC_VER
50+
# if defined(_MSC_VER)
5151
# include <cstddef> // for _HAS_EXCEPTIONS
5252
# endif
5353
# if defined(__cpp_exceptions) || defined(__EXCEPTIONS) || (_HAS_EXCEPTIONS)

0 commit comments

Comments
 (0)