2
0
mirror of https://github.com/boostorg/python.git synced 2026-01-26 06:42:27 +00:00

use symbol visibility for GCC 4.x

[SVN r31828]
This commit is contained in:
Dave Abrahams
2005-11-29 22:26:48 +00:00
parent 321cf2502a
commit a23030b83e
2 changed files with 2 additions and 2 deletions

View File

@@ -74,7 +74,7 @@
# define BOOST_PYTHON_USE_GCC_SYMBOL_VISIBILITY 1
# endif
# if defined(BOOST_PYTHON_USE_GCC_SYMBOL_VISIBILITY)
# if BOOST_PYTHON_USE_GCC_SYMBOL_VISIBILITY
# if defined(BOOST_PYTHON_SOURCE)
# define BOOST_PYTHON_DECL __attribute__ ((visibility("default")))
# define BOOST_PYTHON_BUILD_DLL

View File

@@ -42,7 +42,7 @@ extern "C" \
} \
void init_module_##name()
# elif (defined(__GNUC__) && __GNUC__ >= 3 && __GNUC_MINOR__ >=5)
# elif BOOST_PYTHON_USE_GCC_SYMBOL_VISIBILITY
# define BOOST_PYTHON_MODULE_INIT(name) \
void init_module_##name(); \