diff --git a/include/boost/detail/catch_exceptions.hpp b/include/boost/detail/catch_exceptions.hpp index 823ebd1..e7639a2 100644 --- a/include/boost/detail/catch_exceptions.hpp +++ b/include/boost/detail/catch_exceptions.hpp @@ -18,6 +18,7 @@ // header dependencies are deliberately restricted to the standard library // to reduce coupling to other boost libraries. +#include #include // for string #include // for bad_alloc #include // for bad_cast, bad_typeid @@ -26,7 +27,7 @@ #include // for exit codes #include // for ostream -# if defined(__BORLANDC__) && (__BORLANDC__ <= 0x0551) +# if defined(BOOST_BORLANDC) && (__BORLANDC__ <= 0x0551) # define BOOST_BUILT_IN_EXCEPTIONS_MISSING_WHAT # endif diff --git a/include/boost/detail/named_template_params.hpp b/include/boost/detail/named_template_params.hpp index e7cb079..7675c4e 100644 --- a/include/boost/detail/named_template_params.hpp +++ b/include/boost/detail/named_template_params.hpp @@ -11,9 +11,10 @@ #ifndef BOOST_DETAIL_NAMED_TEMPLATE_PARAMS_HPP #define BOOST_DETAIL_NAMED_TEMPLATE_PARAMS_HPP +#include #include #include // for is_reference -#if defined(__BORLANDC__) +#if defined(BOOST_BORLANDC) #include #endif @@ -57,7 +58,7 @@ namespace boost { }; }; -#if defined(__BORLANDC__) +#if defined(BOOST_BORLANDC) template struct choose_arg_or_default { typedef choose_arg type; }; template <> @@ -75,7 +76,7 @@ namespace boost { template class resolve_default { -#if defined(__BORLANDC__) +#if defined(BOOST_BORLANDC) typedef typename choose_arg_or_default::type>::type Selector; #else // This usually works for Borland, but I'm seeing weird errors in