diff --git a/include/boost/system/detail/std_interoperability.hpp b/include/boost/system/detail/std_interoperability.hpp index a6ec728..30a378f 100644 --- a/include/boost/system/detail/std_interoperability.hpp +++ b/include/boost/system/detail/std_interoperability.hpp @@ -66,7 +66,9 @@ public: virtual bool equivalent( const std::error_code & code, int condition ) const BOOST_NOEXCEPT; }; +#if !defined(__SUNPRO_CC) // trailing __global is not supported inline std::error_category const & to_std_category( boost::system::error_category const & cat ) BOOST_SYMBOL_VISIBLE; +#endif struct cat_ptr_less { diff --git a/include/boost/system/error_code.hpp b/include/boost/system/error_code.hpp index 0881d64..df80592 100644 --- a/include/boost/system/error_code.hpp +++ b/include/boost/system/error_code.hpp @@ -355,7 +355,10 @@ constexpr error_category const & generic_category() BOOST_NOEXCEPT #else // #if defined(BOOST_SYSTEM_HAS_CONSTEXPR) +#if !defined(__SUNPRO_CC) // trailing __global is not supported inline error_category const & system_category() BOOST_NOEXCEPT BOOST_SYMBOL_VISIBLE; +inline error_category const & generic_category() BOOST_NOEXCEPT BOOST_SYMBOL_VISIBLE; +#endif inline error_category const & system_category() BOOST_NOEXCEPT { @@ -363,8 +366,6 @@ inline error_category const & system_category() BOOST_NOEXCEPT return system_category_instance; } -inline error_category const & generic_category() BOOST_NOEXCEPT BOOST_SYMBOL_VISIBLE; - inline error_category const & generic_category() BOOST_NOEXCEPT { static const detail::generic_error_category generic_category_instance;