From 3a41aaabad42f810de040b62dd672c040c87dcc8 Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Tue, 18 Sep 2018 22:32:26 +0300 Subject: [PATCH] Revert "MSVC requires __declspec(dllimport) for variables" This reverts commit 4b7018de8581734bec21f972a9bb3d6ff11d723e. --- include/boost/system/error_code.hpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/include/boost/system/error_code.hpp b/include/boost/system/error_code.hpp index 8c433d3..eb22f8e 100644 --- a/include/boost/system/error_code.hpp +++ b/include/boost/system/error_code.hpp @@ -452,18 +452,14 @@ inline const error_category & generic_category() BOOST_SYSTEM_NOEXCEPT namespace detail { -#if defined(BOOST_SYSTEM_SOURCE) || defined(_MSC_VER) +#if defined(BOOST_SYSTEM_SOURCE) // clang++ requires a strictly matching declaration -// MSVC requires __declspec(dllimport) - BOOST_SYSTEM_DECL extern system_error_category system_category_instance; BOOST_SYSTEM_DECL extern generic_error_category generic_category_instance; #else -// g++ constexpr requires absence of __declspec(dllimport) - extern system_error_category system_category_instance; extern generic_error_category generic_category_instance;