SHA256
1
0
forked from pool/boost
boost/boost-asio-export-symbols.patch

44 lines
1.6 KiB
Diff
Raw Normal View History

Index: boost/asio/detail/config.hpp
===================================================================
--- boost/asio/detail/config.hpp.orig
+++ boost/asio/detail/config.hpp
@@ -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.
Index: boost/asio/io_service.hpp
===================================================================
--- boost/asio/io_service.hpp.orig
+++ boost/asio/io_service.hpp
@@ -672,7 +672,7 @@ public:
};
/// Base class for all io_service services.
-class io_service::service
+class BOOST_ASIO_DECL io_service::service
: private noncopyable
{
public: