From 8dbd926d9e73e021e1e3bf607128ef08010c4443 Mon Sep 17 00:00:00 2001 From: "Ralf W. Grosse-Kunstleve" Date: Mon, 29 Nov 2004 21:32:14 +0000 Subject: [PATCH] __DECCXX_VER test: use BOOST_WORKAROUND, BOOST_TESTED_AT instead of raw '#if defined' [SVN r26363] --- include/boost/python/detail/config.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/boost/python/detail/config.hpp b/include/boost/python/detail/config.hpp index e7d53fb5..5ca5adb8 100644 --- a/include/boost/python/detail/config.hpp +++ b/include/boost/python/detail/config.hpp @@ -13,6 +13,7 @@ # define CONFIG_DWA052200_H_ # include +# include # ifdef BOOST_NO_OPERATORS_IN_NAMESPACE // A gcc bug forces some symbols into the global namespace @@ -105,7 +106,7 @@ # define BOOST_PYTHON_DECL_EXCEPTION BOOST_PYTHON_DECL #endif -#if (defined(__DECCXX_VER) && __DECCXX_VER <= 60590042) +#if BOOST_WORKAROUND(__DECCXX_VER, BOOST_TESTED_AT(60590042)) // Replace broken Tru64/cxx offsetof macro # define BOOST_PYTHON_OFFSETOF(s_name, s_member) \ ((size_t)__INTADDR__(&(((s_name *)0)->s_member)))