From 2231448286afb60cfd5818e54cea18815bb47ac0 Mon Sep 17 00:00:00 2001 From: Dave Abrahams Date: Tue, 29 Nov 2005 22:27:18 +0000 Subject: [PATCH] merged from trunk [SVN r31829] --- include/boost/python/detail/config.hpp | 20 ++++++++++---------- include/boost/python/module_init.hpp | 2 +- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/include/boost/python/detail/config.hpp b/include/boost/python/detail/config.hpp index 5ca5adb8..3f2a19eb 100644 --- a/include/boost/python/detail/config.hpp +++ b/include/boost/python/detail/config.hpp @@ -29,14 +29,14 @@ # endif # if defined(BOOST_MSVC) -# if _MSC_VER <= 1200 +# if _MSC_VER < 1300 # define BOOST_MSVC6_OR_EARLIER 1 # endif -# pragma warning (disable : 4786) // disable truncated debug symbols -# pragma warning (disable : 4251) // disable exported dll function -# pragma warning (disable : 4800) //'int' : forcing value to bool 'true' or 'false' -# pragma warning (disable : 4275) // non dll-interface class +# pragma warning (disable : 4786) // disable truncated debug symbols +# pragma warning (disable : 4251) // disable exported dll function +# pragma warning (disable : 4800) //'int' : forcing value to bool 'true' or 'false' +# pragma warning (disable : 4275) // non dll-interface class # elif defined(__ICL) && __ICL < 600 // Intel C++ 5 @@ -68,13 +68,13 @@ #if defined(BOOST_PYTHON_DYNAMIC_LIB) -# if !defined(_WIN32) && !defined(__CYGWIN__) \ - && defined(__GNUC__) && __GNUC__ >= 3 && __GNUC_MINOR__ >=5 \ - && !defined(BOOST_PYTHON_GCC_SYMBOL_VISIBILITY) -# 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 # 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(); \