Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r50116 - sandbox/boost/extension/impl
From: stipe_at_[hidden]
Date: 2008-12-04 13:53:15


Author: srajko
Date: 2008-12-04 13:53:14 EST (Thu, 04 Dec 2008)
New Revision: 50116
URL: http://svn.boost.org/trac/boost/changeset/50116

Log:
tentative fix for GCC version>=4 when default visibility is hidden
Text files modified:
   sandbox/boost/extension/impl/decl.hpp | 11 ++++++++---
   1 files changed, 8 insertions(+), 3 deletions(-)

Modified: sandbox/boost/extension/impl/decl.hpp
==============================================================================
--- sandbox/boost/extension/impl/decl.hpp (original)
+++ sandbox/boost/extension/impl/decl.hpp 2008-12-04 13:53:14 EST (Thu, 04 Dec 2008)
@@ -3,6 +3,8 @@
  * main header for extensions
  *
  * (C) Copyright Jeremy Pack 2007
+ * Copyrignt 2008 Stjepan Rajko
+ *
  * Distributed under the Boost Software License, Version 1.0. (See
  * accompanying file LICENSE_1_0.txt or copy at
  * http://www.boost.org/LICENSE_1_0.txt)
@@ -13,12 +15,15 @@
 #ifndef BOOST_EXTENSION_DECL_HPP
 #define BOOST_EXTENSION_DECL_HPP
 
-#if defined(_WIN32) || defined(__WIN32__) || defined(WIN32) || defined(MSC_VER)
+#if __GNUC__ >= 4
+# define BOOST_EXTENSION_EXPORT_DECL __attribute__((visibility("default")))
+# define BOOST_EXTENSION_IMPORT_DECL __attribute__((visibility("hidden")))
+#elif defined(_WIN32) || defined(__WIN32__) || defined(WIN32) || defined(MSC_VER)
 # define BOOST_EXTENSION_EXPORT_DECL __declspec(dllexport)
 # define BOOST_EXTENSION_IMPORT_DECL __declspec(dllimport)
-#else
+#elif
 # define BOOST_EXTENSION_EXPORT_DECL
 # define BOOST_EXTENSION_IMPORT_DECL
 #endif
 
-#endif
+#endif
\ No newline at end of file


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