mirror of
https://github.com/boostorg/system.git
synced 2025-07-30 04:27:14 +02:00
Fix dllexport mismatch errors under clang++
This commit is contained in:
@ -442,9 +442,19 @@ inline const error_category & generic_category() BOOST_SYSTEM_NOEXCEPT
|
|||||||
namespace detail
|
namespace detail
|
||||||
{
|
{
|
||||||
|
|
||||||
|
#if defined(BOOST_SYSTEM_SOURCE)
|
||||||
|
|
||||||
|
// clang++ requires a strictly matching declaration
|
||||||
|
BOOST_SYSTEM_DECL extern system_error_category system_category_instance;
|
||||||
|
BOOST_SYSTEM_DECL extern generic_error_category generic_category_instance;
|
||||||
|
|
||||||
|
#else
|
||||||
|
|
||||||
extern system_error_category system_category_instance;
|
extern system_error_category system_category_instance;
|
||||||
extern generic_error_category generic_category_instance;
|
extern generic_error_category generic_category_instance;
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
} // namespace detail
|
} // namespace detail
|
||||||
|
|
||||||
constexpr const error_category & system_category() BOOST_SYSTEM_NOEXCEPT
|
constexpr const error_category & system_category() BOOST_SYSTEM_NOEXCEPT
|
||||||
|
Reference in New Issue
Block a user