]> git.pld-linux.org Git - packages/boost.git/blame - boost-python.patch
- use %{__cc}, %{__cxx}
[packages/boost.git] / boost-python.patch
CommitLineData
ac90094f
JB
1--- boost_1_31_0/libs/python/build/Jamfile.orig 2003-11-04 19:30:37.000000000 +0100
2+++ boost_1_31_0/libs/python/build/Jamfile 2004-02-19 00:07:10.072772224 +0100
10fc06f2 3@@ -60,6 +60,8 @@
60f6ab0a
JB
4 : ../src/$(sources)
5 : $(BOOST_PYTHON_V2_PROPERTIES)
6 <define>BOOST_PYTHON_SOURCE
b19db4a5 7+ <cxxflags>-fno-strict-aliasing
60f6ab0a
JB
8+ <find-library>python$(PYTHON_VERSION)
9 $(bpl-linkflags)
10 <msvc-stlport><release>$(msvc-stlport-workarounds)
ac90094f 11 <darwin><*><linkflags>-bind_at_load
10fc06f2
PS
12@@ -79,6 +81,7 @@
13 $(BOOST_PYTHON_V2_PROPERTIES)
14 <define>BOOST_PYTHON_SOURCE
15 <define>BOOST_STATIC_LIB
16+ <cxxflags>-fno-strict-aliasing
17 $(bpl-linkflags)
18 <msvc-stlport><release>$(msvc-stlport-workarounds)
19 ;
20--- boost_1_33_1/libs/python/src/object_protocol.cpp.orig 2004-07-26 02:32:11.000000000 +0200
21+++ boost_1_33_1/libs/python/src/object_protocol.cpp 2006-09-06 00:46:35.567981500 +0200
22@@ -106,7 +106,7 @@
23 PySequenceMethods *sq = tp->tp_as_sequence;
24
25 if (sq && sq->sq_slice && ISINT(v) && ISINT(w)) {
26- int ilow = 0, ihigh = INT_MAX;
27+ Py_ssize_t ilow = 0, ihigh = INT_MAX;
28 if (!_PyEval_SliceIndex(v, &ilow))
29 return NULL;
30 if (!_PyEval_SliceIndex(w, &ihigh))
31@@ -133,7 +133,7 @@
32 PySequenceMethods *sq = tp->tp_as_sequence;
33
34 if (sq && sq->sq_slice && ISINT(v) && ISINT(w)) {
35- int ilow = 0, ihigh = INT_MAX;
36+ Py_ssize_t ilow = 0, ihigh = INT_MAX;
37 if (!_PyEval_SliceIndex(v, &ilow))
38 return -1;
39 if (!_PyEval_SliceIndex(w, &ihigh))
7031d929
ER
40--- boost_1_33_1/libs/python/src/object_protocol.cpp~ 2007-01-11 01:41:12.236117736 +0200
41+++ boost_1_33_1/libs/python/src/object_protocol.cpp 2007-01-11 01:41:13.476145496 +0200
42@@ -7,6 +7,10 @@
43 #include <boost/python/errors.hpp>
44 #include <boost/python/object.hpp>
45
46+#if (PY_VERSION_HEX < 0x02050000)
47+typedef ssize_t Py_ssize_t;
48+#endif
49+
50 namespace boost { namespace python { namespace api {
51
52 BOOST_PYTHON_DECL object getattr(object const& target, object const& key)
This page took 0.101347 seconds and 4 git commands to generate.