forked from boostorg/system
Revert "MSVC requires __declspec(dllimport) for variables"
This reverts commit 4b7018de85
.
This commit is contained in:
@ -452,18 +452,14 @@ inline const error_category & generic_category() BOOST_SYSTEM_NOEXCEPT
|
|||||||
namespace detail
|
namespace detail
|
||||||
{
|
{
|
||||||
|
|
||||||
#if defined(BOOST_SYSTEM_SOURCE) || defined(_MSC_VER)
|
#if defined(BOOST_SYSTEM_SOURCE)
|
||||||
|
|
||||||
// clang++ requires a strictly matching declaration
|
// clang++ requires a strictly matching declaration
|
||||||
// MSVC requires __declspec(dllimport)
|
|
||||||
|
|
||||||
BOOST_SYSTEM_DECL extern system_error_category system_category_instance;
|
BOOST_SYSTEM_DECL extern system_error_category system_category_instance;
|
||||||
BOOST_SYSTEM_DECL extern generic_error_category generic_category_instance;
|
BOOST_SYSTEM_DECL extern generic_error_category generic_category_instance;
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
||||||
// g++ constexpr requires absence of __declspec(dllimport)
|
|
||||||
|
|
||||||
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;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user