From d53238e9027b907cbfa0cfc0a8d3b0d208481ae1 Mon Sep 17 00:00:00 2001 From: Michel Morin Date: Fri, 26 Oct 2012 16:23:45 +0000 Subject: [PATCH] Adding `BOOST_SYMBOL_EXPORT` and `BOOST_SYMBOL_IMPORT`; fixes #7559 [SVN r81068] --- include/boost/config/compiler/clang.hpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/include/boost/config/compiler/clang.hpp b/include/boost/config/compiler/clang.hpp index a586d89d..18d6e546 100644 --- a/include/boost/config/compiler/clang.hpp +++ b/include/boost/config/compiler/clang.hpp @@ -29,7 +29,14 @@ // Clang supports "long long" in all compilation modes. #define BOOST_HAS_LONG_LONG -#define BOOST_SYMBOL_VISIBLE __attribute__((__visibility__("default"))) +// +// Dynamic shared object (DSO) and dynamic-link library (DLL) support +// +#if !defined(_WIN32) && !defined(__WIN32__) && !defined(WIN32) +# define BOOST_SYMBOL_EXPORT __attribute__((__visibility__("default"))) +# define BOOST_SYMBOL_IMPORT +# define BOOST_SYMBOL_VISIBLE __attribute__((__visibility__("default"))) +#endif #if !__has_feature(cxx_auto_type) # define BOOST_NO_CXX11_AUTO_DECLARATIONS