diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2014-02-13 12:58:18 +0200 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2014-02-13 12:59:03 +0200 |
commit | 42d502d0180002224e64ab766b3f09846be6eb56 (patch) | |
tree | 653bb658337eb7157f79561ed205b61718d864b2 /python/rpmsystem-py.h | |
parent | 0073376965ee8d8df63c21b0da634fc315c97d0b (diff) | |
download | rpm-42d502d0180002224e64ab766b3f09846be6eb56.tar.gz |
Python 2/3 compat define for PyInt_AsSsize_t, used by rpmfiles
Diffstat (limited to 'python/rpmsystem-py.h')
-rw-r--r-- | python/rpmsystem-py.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/python/rpmsystem-py.h b/python/rpmsystem-py.h index 58ac1ba32..50e8770e8 100644 --- a/python/rpmsystem-py.h +++ b/python/rpmsystem-py.h @@ -48,6 +48,7 @@ typedef Py_ssize_t (*lenfunc)(PyObject *); #define PyInt_FromLong PyLong_FromLong #define PyInt_AsUnsignedLongMask PyLong_AsUnsignedLongMask #define PyInt_AsUnsignedLongLongMask PyLong_AsUnsignedLongLongMask +#define PyInt_AsSsize_t PyLong_AsSsize_t #endif #endif /* H_SYSTEM_PYTHON */ |