summaryrefslogtreecommitdiff
path: root/boost/iostreams/detail/config/dyn_link.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/iostreams/detail/config/dyn_link.hpp')
-rw-r--r--boost/iostreams/detail/config/dyn_link.hpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/boost/iostreams/detail/config/dyn_link.hpp b/boost/iostreams/detail/config/dyn_link.hpp
index 15490cfe4d..cc8c73bd90 100644
--- a/boost/iostreams/detail/config/dyn_link.hpp
+++ b/boost/iostreams/detail/config/dyn_link.hpp
@@ -27,7 +27,16 @@
# else
# define BOOST_IOSTREAMS_DECL __declspec(dllimport)
# endif
-# endif
+# endif
+//--------------Enable dynamic linking for non-windows---------------------//
+#else // BOOST_HAS_DECLSPEC
+# if defined(BOOST_ALL_DYN_LINK) || defined(BOOST_IOSTREAMS_DYN_LINK)
+# ifdef BOOST_IOSTREAMS_SOURCE
+# define BOOST_IOSTREAMS_DECL BOOST_SYMBOL_EXPORT
+# else
+# define BOOST_IOSTREAMS_DECL BOOST_SYMBOL_IMPORT
+# endif
+# endif
#endif
#ifndef BOOST_IOSTREAMS_DECL