diff --git a/current_function_test.cpp b/current_function_test.cpp index 620a45e..a724986 100644 --- a/current_function_test.cpp +++ b/current_function_test.cpp @@ -1,4 +1,6 @@ -#if defined(_MSC_VER) && !defined(__ICL) +#include + +#if defined(BOOST_MSVC) #pragma warning(disable: 4786) // identifier truncated in debug info #pragma warning(disable: 4710) // function not inlined #pragma warning(disable: 4711) // function selected for automatic inline expansion diff --git a/include/boost/current_function.hpp b/include/boost/current_function.hpp index 38aeab2..4aea5ef 100644 --- a/include/boost/current_function.hpp +++ b/include/boost/current_function.hpp @@ -1,6 +1,8 @@ #ifndef BOOST_CURRENT_FUNCTION_HPP_INCLUDED #define BOOST_CURRENT_FUNCTION_HPP_INCLUDED +// MS compatible compilers support #pragma once + #if defined(_MSC_VER) && (_MSC_VER >= 1020) # pragma once #endif