|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r81068 - trunk/boost/config/compiler
From: mimomorin_at_[hidden]
Date: 2012-10-26 12:23:45
Author: michel
Date: 2012-10-26 12:23:45 EDT (Fri, 26 Oct 2012)
New Revision: 81068
URL: http://svn.boost.org/trac/boost/changeset/81068
Log:
Adding `BOOST_SYMBOL_EXPORT` and `BOOST_SYMBOL_IMPORT`; fixes #7559
Text files modified:
trunk/boost/config/compiler/clang.hpp | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
Modified: trunk/boost/config/compiler/clang.hpp
==============================================================================
--- trunk/boost/config/compiler/clang.hpp (original)
+++ trunk/boost/config/compiler/clang.hpp 2012-10-26 12:23:45 EDT (Fri, 26 Oct 2012)
@@ -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
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