diff options
Diffstat (limited to 'boost/smart_ptr/bad_weak_ptr.hpp')
-rw-r--r-- | boost/smart_ptr/bad_weak_ptr.hpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/boost/smart_ptr/bad_weak_ptr.hpp b/boost/smart_ptr/bad_weak_ptr.hpp index 582fad8b71..b086be595f 100644 --- a/boost/smart_ptr/bad_weak_ptr.hpp +++ b/boost/smart_ptr/bad_weak_ptr.hpp @@ -17,6 +17,7 @@ // http://www.boost.org/LICENSE_1_0.txt) // +#include <boost/config.hpp> #include <exception> #ifdef __BORLANDC__ @@ -36,7 +37,8 @@ namespace boost # pragma option push -pc #endif -#if defined(__clang__) +#if defined(BOOST_CLANG) +// Intel C++ on Mac defines __clang__ but doesn't support the pragma # pragma clang diagnostic push # pragma clang diagnostic ignored "-Wweak-vtables" #endif @@ -51,7 +53,7 @@ public: } }; -#if defined(__clang__) +#if defined(BOOST_CLANG) # pragma clang diagnostic pop #endif |