diff --git a/include/boost/config/platform/win32.hpp b/include/boost/config/platform/win32.hpp index 89e36ba8..a78cdd32 100644 --- a/include/boost/config/platform/win32.hpp +++ b/include/boost/config/platform/win32.hpp @@ -13,6 +13,10 @@ # define BOOST_NO_SWPRINTF #endif +#if !defined(__GNUC__) && !defined(BOOST_HAS_DECLSPEC) +# define BOOST_HAS_DECLSPEC +#endif + // // Win32 will normally be using native Win32 threads, // but there is a pthread library avaliable as an option, @@ -70,3 +74,4 @@ namespace std{ using std::min; using std::max; # endif +