diff --git a/include/boost/bind/bind.hpp b/include/boost/bind/bind.hpp index bda1263..11fcb2a 100644 --- a/include/boost/bind/bind.hpp +++ b/include/boost/bind/bind.hpp @@ -172,7 +172,7 @@ public: list( A... a ): data_( a... ) {} -#if BOOST_MSVC +#if defined(BOOST_MSVC) # pragma warning( push ) # pragma warning( disable: 4100 ) // unreferenced formal parameter 'a2' #endif @@ -197,7 +197,7 @@ public: unwrapper::unwrap( f, 0 )( a2[ std::get( data_ ) ]... ); } -#if BOOST_MSVC +#if defined(BOOST_MSVC) # pragma warning( pop ) #endif diff --git a/include/boost/bind/detail/tuple_for_each.hpp b/include/boost/bind/detail/tuple_for_each.hpp index b1091ca..d1eabff 100644 --- a/include/boost/bind/detail/tuple_for_each.hpp +++ b/include/boost/bind/detail/tuple_for_each.hpp @@ -14,7 +14,7 @@ #include #include -#if BOOST_MSVC +#if defined(BOOST_MSVC) # pragma warning( push ) # pragma warning( disable: 4100 ) // unreferenced formal parameter 'tp' #endif @@ -57,7 +57,7 @@ template F tuple_for_each( F&& f, Tp1&& tp1, Tp2& } // namespace _bi } // namespace boost -#if BOOST_MSVC +#if defined(BOOST_MSVC) # pragma warning( pop ) #endif