diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2009-10-19 10:57:13 +0300 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2009-10-19 10:57:13 +0300 |
commit | 2f5a5c44cf5cd5406b153ba9ba37a7a5a4f4c6db (patch) | |
tree | 2b6b0b6ebc31e5b6dba20803c196cb433efa9ded /python/rpmsystem-py.h | |
parent | 7b51c4a1eb8f14207f9a8d3e0be514a41c0e2197 (diff) | |
download | rpm-2f5a5c44cf5cd5406b153ba9ba37a7a5a4f4c6db.tar.gz |
Py_TYPE() compatibility macro for Python < 2.6
Diffstat (limited to 'python/rpmsystem-py.h')
-rw-r--r-- | python/rpmsystem-py.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/python/rpmsystem-py.h b/python/rpmsystem-py.h index 1544dd623..afd88fb14 100644 --- a/python/rpmsystem-py.h +++ b/python/rpmsystem-py.h @@ -15,4 +15,8 @@ typedef ssize_t Py_ssize_t; typedef Py_ssize_t (*lenfunc)(PyObject *); #endif +#ifndef Py_TYPE +#define Py_TYPE(o) ((o)->ob_type) +#endif + #endif /* H_SYSTEM_PYTHON */ |