diff options
author | James Meyer <james.meyer@operamail.com> | 2012-08-07 20:50:31 (GMT) |
---|---|---|
committer | James Meyer <james.meyer@operamail.com> | 2012-08-07 20:50:31 (GMT) |
commit | 68988b0cc1a1b3e8d412f9a1b020732f7abf49f0 (patch) | |
tree | 9839ea784f90de866bb892c28adcee9f7eae4aeb /abs/extra/swig/pyint_fromsize_t.diff | |
parent | fe3bc0b9a864e4d62edad6e5f341d867462dd211 (diff) | |
download | linhes_pkgbuild-68988b0cc1a1b3e8d412f9a1b020732f7abf49f0.zip linhes_pkgbuild-68988b0cc1a1b3e8d412f9a1b020732f7abf49f0.tar.gz linhes_pkgbuild-68988b0cc1a1b3e8d412f9a1b020732f7abf49f0.tar.bz2 |
swig 2.0.7
Diffstat (limited to 'abs/extra/swig/pyint_fromsize_t.diff')
-rw-r--r-- | abs/extra/swig/pyint_fromsize_t.diff | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/abs/extra/swig/pyint_fromsize_t.diff b/abs/extra/swig/pyint_fromsize_t.diff new file mode 100644 index 0000000..1c7727a --- /dev/null +++ b/abs/extra/swig/pyint_fromsize_t.diff @@ -0,0 +1,18 @@ +Description: Py3k: Map PyInt_FromSize_t to PyLong_FromSize_t + The latest SWIG version introduced a usage of PyInt_FromSize_t, but + does not define a compatibility macro for Python 3k as for the other + PyInt_... functions. This patch adds that macro. + +Author: Torsten Landschoff <torsten@debian.org> + + +--- swig2.0-2.0.7.orig/Lib/python/pyhead.swg ++++ swig2.0-2.0.7/Lib/python/pyhead.swg +@@ -5,6 +5,7 @@ + #define PyInt_Check(x) PyLong_Check(x) + #define PyInt_AsLong(x) PyLong_AsLong(x) + #define PyInt_FromLong(x) PyLong_FromLong(x) ++#define PyInt_FromSize_t(x) PyLong_FromSize_t(x) + #define PyString_Check(name) PyBytes_Check(name) + #define PyString_FromString(x) PyUnicode_FromString(x) + #define PyString_Format(fmt, args) PyUnicode_Format(fmt, args) |