There was an error while loading. Please reload this page.
1 parent 4996f91 commit 321cf25Copy full SHA for 321cf25
1 file changed
include/boost/python/detail/config.hpp
@@ -68,10 +68,10 @@
68
69
#if defined(BOOST_PYTHON_DYNAMIC_LIB)
70
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
+# if !defined(_WIN32) && !defined(__CYGWIN__) \
+ && !defined(BOOST_PYTHON_USE_GCC_SYMBOL_VISIBILITY) \
+ && BOOST_WORKAROUND(__GNUC__, >= 3) && (__GNUC_MINOR__ >=5 || __GNUC__ > 3)
+# define BOOST_PYTHON_USE_GCC_SYMBOL_VISIBILITY 1
75
# endif
76
77
# if defined(BOOST_PYTHON_USE_GCC_SYMBOL_VISIBILITY)
0 commit comments