diff --git a/include/boost/python/detail/config.hpp b/include/boost/python/detail/config.hpp index d420518d..3f2a19eb 100644 --- a/include/boost/python/detail/config.hpp +++ b/include/boost/python/detail/config.hpp @@ -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 diff --git a/include/boost/python/module_init.hpp b/include/boost/python/module_init.hpp index 64599a38..7770f531 100644 --- a/include/boost/python/module_init.hpp +++ b/include/boost/python/module_init.hpp @@ -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(); \