Skip to content

Commit 321cf25

Browse files
committed
use symbol visibility for GCC 4.x
[SVN r31827]
1 parent 4996f91 commit 321cf25

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

include/boost/python/detail/config.hpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,10 @@
6868

6969
#if defined(BOOST_PYTHON_DYNAMIC_LIB)
7070

71-
# if !defined(_WIN32) && !defined(__CYGWIN__) \
72-
&& defined(__GNUC__) && __GNUC__ >= 3 && __GNUC_MINOR__ >=5 \
73-
&& !defined(BOOST_PYTHON_GCC_SYMBOL_VISIBILITY)
74-
# define BOOST_PYTHON_USE_GCC_SYMBOL_VISIBILITY
71+
# if !defined(_WIN32) && !defined(__CYGWIN__) \
72+
&& !defined(BOOST_PYTHON_USE_GCC_SYMBOL_VISIBILITY) \
73+
&& BOOST_WORKAROUND(__GNUC__, >= 3) && (__GNUC_MINOR__ >=5 || __GNUC__ > 3)
74+
# define BOOST_PYTHON_USE_GCC_SYMBOL_VISIBILITY 1
7575
# endif
7676

7777
# if defined(BOOST_PYTHON_USE_GCC_SYMBOL_VISIBILITY)

0 commit comments

Comments
 (0)