Index: detail/config.hpp =================================================================== --- detail/config.hpp (revision 77339) +++ detail/config.hpp (working copy) @@ -28,18 +28,16 @@ #if defined(BOOST_ASIO_HEADER_ONLY) # define BOOST_ASIO_DECL inline #else // defined(BOOST_ASIO_HEADER_ONLY) -# if defined(BOOST_HAS_DECLSPEC) // We need to import/export our code only if the user has specifically asked // for it by defining BOOST_ASIO_DYN_LINK. -# if defined(BOOST_ASIO_DYN_LINK) +# if defined(BOOST_ASIO_DYN_LINK) // Export if this is our own source, otherwise import. -# if defined(BOOST_ASIO_SOURCE) -# define BOOST_ASIO_DECL __declspec(dllexport) -# else // defined(BOOST_ASIO_SOURCE) -# define BOOST_ASIO_DECL __declspec(dllimport) -# endif // defined(BOOST_ASIO_SOURCE) -# endif // defined(BOOST_ASIO_DYN_LINK) -# endif // defined(BOOST_HAS_DECLSPEC) +# if defined(BOOST_ASIO_SOURCE) +# define BOOST_ASIO_DECL BOOST_SYMBOL_EXPORT +# else // defined(BOOST_ASIO_SOURCE) +# define BOOST_ASIO_DECL BOOST_SYMBOL_IMPORT +# endif // defined(BOOST_ASIO_SOURCE) +# endif // defined(BOOST_ASIO_DYN_LINK) #endif // defined(BOOST_ASIO_HEADER_ONLY) // If BOOST_ASIO_DECL isn't defined yet define it now.