8ad06e2f2af453a12f7dedabfb0e40f648d3249a
[openwrt/svn-archive/archive.git] / libs / boost / patches / 020-buildin-offsetof.patch
1 --- boost_1_38_0/boost/python/detail/config.hpp 2007-11-25 19:07:19.000000000 +0100
2 +++ boost_1_38_0/boost/python/detail/config.hpp 2010-02-26 02:06:26.000000000 +0100
3 @@ -111,7 +111,7 @@
4 # define BOOST_PYTHON_OFFSETOF(s_name, s_member) \
5 ((size_t)__INTADDR__(&(((s_name *)0)->s_member)))
6 #else
7 -# define BOOST_PYTHON_OFFSETOF offsetof
8 +# define BOOST_PYTHON_OFFSETOF __builtin_offsetof
9 #endif
10
11 // enable automatic library variant selection ------------------------------//