Add symbol visibility support to Intel and Sun compilers.

[SVN r62199]
This commit is contained in:
John Maddock
2010-05-25 14:38:34 +00:00
parent 40a0eeeef0
commit 5425bedbb4
2 changed files with 18 additions and 0 deletions

View File

@ -171,6 +171,15 @@ template<> struct assert_intrinsic_wchar_t<unsigned short> {};
# 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)

View File

@ -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
//