diff options
author | Simon Barner <barner@FreeBSD.org> | 2007-03-06 05:58:23 +0000 |
---|---|---|
committer | Simon Barner <barner@FreeBSD.org> | 2007-03-06 05:58:23 +0000 |
commit | c8f499efddb38a5ce3c56c48484c56e5bc458c99 (patch) | |
tree | dc3767b8265b3f245dfec8b6defe64815b3d36b3 /devel/boost/files/patch-boost::python::detail::config.hpp | |
parent | make the xspf plugin enable by default to allow audacious to not start with (diff) |
- Remove support for FreeBSD 4.
- Remove devel/boost-gcc3, since it's only usefull on 4.x
- Minor portlint tweaks.
Notes
Notes:
svn path=/head/; revision=186636
Diffstat (limited to 'devel/boost/files/patch-boost::python::detail::config.hpp')
-rw-r--r-- | devel/boost/files/patch-boost::python::detail::config.hpp | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/devel/boost/files/patch-boost::python::detail::config.hpp b/devel/boost/files/patch-boost::python::detail::config.hpp new file mode 100644 index 000000000000..3013169206f0 --- /dev/null +++ b/devel/boost/files/patch-boost::python::detail::config.hpp @@ -0,0 +1,19 @@ +--- boost/python/detail/config.hpp.orig Tue Nov 29 23:27:18 2005 ++++ boost/python/detail/config.hpp Sun Dec 17 13:24:16 2006 +@@ -111,7 +111,15 @@ + # define BOOST_PYTHON_OFFSETOF(s_name, s_member) \ + ((size_t)__INTADDR__(&(((s_name *)0)->s_member))) + #else +-# define BOOST_PYTHON_OFFSETOF offsetof ++// workaround from http://www.freebsd.org/cgi/query-pr.cgi?pr=72307 ++#if __GNUC__ <= 3 ++#define BOOST_PYTHON_OFFSETOF(TYPE, MEMBER)\ ++ (__offsetof__ (reinterpret_cast <size_t>\ ++ (&reinterpret_cast <const volatile char &>\ ++ (static_cast<TYPE *> (0)->MEMBER)))) ++#else ++#define BOOST_PYTHON_OFFSETOF offsetof ++#endif + #endif + + #endif // CONFIG_DWA052200_H_ |