Skip to content

Commit b3a82a0

Browse files
committed
Avoid warning -Wundef
Use #ifdef _MSVC_LANG
1 parent 4956b19 commit b3a82a0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/boolean-main.t.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ CASE( "__cplusplus" "[.stdc++]" )
8686
{
8787
boolean_PRESENT( __cplusplus );
8888

89-
#if _MSVC_LANG
89+
#ifdef _MSVC_LANG
9090
boolean_PRESENT( _MSVC_LANG );
9191
#else
9292
boolean_ABSENT( _MSVC_LANG );
@@ -113,7 +113,7 @@ CASE( "presence of C++ language features" "[.stdlanguage]" )
113113

114114
CASE( "presence of C++ library features" "[.stdlibrary]" )
115115
{
116-
#if _HAS_CPP0X
116+
#ifdef _HAS_CPP0X
117117
boolean_PRESENT( _HAS_CPP0X );
118118
#else
119119
boolean_ABSENT( _HAS_CPP0X );

0 commit comments

Comments
 (0)