packages/libs/boost/patches/020-buildin-offsetof.patch
lars 24f0aebcf9 [packages] Boost: Add packages for all boost libs.
Patch by AlexanderS


git-svn-id: svn://svn.openwrt.org/openwrt/packages@20365 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-03-22 00:07:58 +00:00

12 lines
491 B
Diff

--- boost_1_38_0/boost/python/detail/config.hpp 2007-11-25 19:07:19.000000000 +0100
+++ boost_1_38_0/boost/python/detail/config.hpp 2010-02-26 02:06:26.000000000 +0100
@@ -111,7 +111,7 @@
# define BOOST_PYTHON_OFFSETOF(s_name, s_member) \
((size_t)__INTADDR__(&(((s_name *)0)->s_member)))
#else
-# define BOOST_PYTHON_OFFSETOF offsetof
+# define BOOST_PYTHON_OFFSETOF __builtin_offsetof
#endif
// enable automatic library variant selection ------------------------------//