From 5425bedbb4285f1f9169ba7494f850ecf3b3cad5 Mon Sep 17 00:00:00 2001 From: John Maddock Date: Tue, 25 May 2010 14:38:34 +0000 Subject: [PATCH] Add symbol visibility support to Intel and Sun compilers. [SVN r62199] --- include/boost/config/compiler/intel.hpp | 9 +++++++++ include/boost/config/compiler/sunpro_cc.hpp | 9 +++++++++ 2 files changed, 18 insertions(+) diff --git a/include/boost/config/compiler/intel.hpp b/include/boost/config/compiler/intel.hpp index 1af092fe..e7bc95ba 100644 --- a/include/boost/config/compiler/intel.hpp +++ b/include/boost/config/compiler/intel.hpp @@ -171,6 +171,15 @@ template<> struct assert_intrinsic_wchar_t {}; # endif #endif +// +// Dynamic shared object (DSO) and dynamic-link library (DLL) support +// +#if defined(__GNUC__) && (__GNUC__ >= 4) +# define BOOST_SYMBOL_EXPORT __attribute__((visibility("default"))) +# define BOOST_SYMBOL_IMPORT +# define BOOST_SYMBOL_VISIBLE __attribute__((visibility("default"))) +#endif + // // last known and checked version: #if (BOOST_INTEL_CXX_VERSION > 1110) diff --git a/include/boost/config/compiler/sunpro_cc.hpp b/include/boost/config/compiler/sunpro_cc.hpp index 8f8d7886..aca49fa0 100644 --- a/include/boost/config/compiler/sunpro_cc.hpp +++ b/include/boost/config/compiler/sunpro_cc.hpp @@ -77,6 +77,15 @@ # define BOOST_NO_COMPLETE_VALUE_INITIALIZATION # endif +// +// Dynamic shared object (DSO) and dynamic-link library (DLL) support +// +#if __SUNPRO_CC > 0x500 +# define BOOST_SYMBOL_EXPORT __global +# define BOOST_SYMBOL_IMPORT __global +# define BOOST_SYMBOL_VISIBLE __global +#endif + //