|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r76562 - in trunk/boost/python: . detail
From: rwgk_at_[hidden]
Date: 2012-01-17 14:36:56
Author: rwgk
Date: 2012-01-17 14:36:56 EST (Tue, 17 Jan 2012)
New Revision: 76562
URL: http://svn.boost.org/trac/boost/changeset/76562
Log:
Python: applying #6409: __visibility__ (with underscores) to avoid name clashes
Text files modified:
trunk/boost/python/detail/config.hpp | 4 ++--
trunk/boost/python/module_init.hpp | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
Modified: trunk/boost/python/detail/config.hpp
==============================================================================
--- trunk/boost/python/detail/config.hpp (original)
+++ trunk/boost/python/detail/config.hpp 2012-01-17 14:36:56 EST (Tue, 17 Jan 2012)
@@ -76,13 +76,13 @@
# if BOOST_PYTHON_USE_GCC_SYMBOL_VISIBILITY
# if defined(BOOST_PYTHON_SOURCE)
-# define BOOST_PYTHON_DECL __attribute__ ((visibility("default")))
+# define BOOST_PYTHON_DECL __attribute__ ((__visibility__("default")))
# define BOOST_PYTHON_BUILD_DLL
# else
# define BOOST_PYTHON_DECL
# endif
# define BOOST_PYTHON_DECL_FORWARD
-# define BOOST_PYTHON_DECL_EXCEPTION __attribute__ ((visibility("default")))
+# define BOOST_PYTHON_DECL_EXCEPTION __attribute__ ((__visibility__("default")))
# elif (defined(_WIN32) || defined(__CYGWIN__))
# if defined(BOOST_PYTHON_SOURCE)
# define BOOST_PYTHON_DECL __declspec(dllexport)
Modified: trunk/boost/python/module_init.hpp
==============================================================================
--- trunk/boost/python/module_init.hpp (original)
+++ trunk/boost/python/module_init.hpp 2012-01-17 14:36:56 EST (Tue, 17 Jan 2012)
@@ -76,7 +76,7 @@
# define BOOST_PYTHON_MODULE_INIT(name) \
void BOOST_PP_CAT(init_module_,name)(); \
-extern "C" __attribute__ ((visibility("default"))) _BOOST_PYTHON_MODULE_INIT(name)
+extern "C" __attribute__ ((__visibility__("default"))) _BOOST_PYTHON_MODULE_INIT(name)
# else
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