|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r62199 - trunk/boost/config/compiler
From: john_at_[hidden]
Date: 2010-05-25 10:38:35
Author: johnmaddock
Date: 2010-05-25 10:38:34 EDT (Tue, 25 May 2010)
New Revision: 62199
URL: http://svn.boost.org/trac/boost/changeset/62199
Log:
Add symbol visibility support to Intel and Sun compilers.
Text files modified:
trunk/boost/config/compiler/intel.hpp | 9 +++++++++
trunk/boost/config/compiler/sunpro_cc.hpp | 9 +++++++++
2 files changed, 18 insertions(+), 0 deletions(-)
Modified: trunk/boost/config/compiler/intel.hpp
==============================================================================
--- trunk/boost/config/compiler/intel.hpp (original)
+++ trunk/boost/config/compiler/intel.hpp 2010-05-25 10:38:34 EDT (Tue, 25 May 2010)
@@ -172,6 +172,15 @@
#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)
# if defined(BOOST_ASSERT_CONFIG)
Modified: trunk/boost/config/compiler/sunpro_cc.hpp
==============================================================================
--- trunk/boost/config/compiler/sunpro_cc.hpp (original)
+++ trunk/boost/config/compiler/sunpro_cc.hpp 2010-05-25 10:38:34 EDT (Tue, 25 May 2010)
@@ -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
+
//
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk