diff --git a/include/boost/python/detail/string_literal.hpp b/include/boost/python/detail/string_literal.hpp index a8e57bba..28858622 100644 --- a/include/boost/python/detail/string_literal.hpp +++ b/include/boost/python/detail/string_literal.hpp @@ -11,6 +11,7 @@ # include # include # include +# include namespace boost { namespace python { namespace detail { @@ -26,7 +27,7 @@ struct is_string_literal : mpl::true_ { }; -# if (defined(__DECCXX_VER) && __DECCXX_VER <= 60590040) \ +# if BOOST_WORKAROUND(__DECCXX_VER, BOOST_TESTED_AT(60590040)) \ || (defined(__sgi) && defined(_COMPILER_VERSION) && _COMPILER_VERSION <= 730) // This compiler mistakenly gets the type of string literals as char* // instead of char[NN].