summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorAles Kozumplik <akozumpl@redhat.com>2011-11-18 11:36:20 +0100
committerAles Kozumplik <akozumpl@redhat.com>2011-11-18 11:36:20 +0100
commite1922aa5feb59b9f3fc7b879e24c9472983dbd91 (patch)
tree09f5b49254f3627dee66b5a627c1de8eb230f319 /python
parentc87ad03260fea33da6d64f65709981b06d4e135a (diff)
downloadrpm-e1922aa5feb59b9f3fc7b879e24c9472983dbd91.tar.gz
rpm-e1922aa5feb59b9f3fc7b879e24c9472983dbd91.tar.bz2
rpm-e1922aa5feb59b9f3fc7b879e24c9472983dbd91.zip
inverse the macro definition condition in c87ad03.
- thanks zpavlas for pointing this out.
Diffstat (limited to 'python')
-rw-r--r--python/rpmsystem-py.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/rpmsystem-py.h b/python/rpmsystem-py.h
index b73097312..58ac1ba32 100644
--- a/python/rpmsystem-py.h
+++ b/python/rpmsystem-py.h
@@ -31,7 +31,7 @@ typedef Py_ssize_t (*lenfunc)(PyObject *);
#define PyBytes_AsString PyString_AsString
#endif
-#if ((PY_MAJOR_VERSION << 8) | (PY_MINOR_VERSION << 0)) < 0x0207
+#if ((PY_MAJOR_VERSION << 8) | (PY_MINOR_VERSION << 0)) >= 0x0207
#define CAPSULE_BUILD(ptr,name) PyCapsule_New(ptr, name, NULL)
#define CAPSULE_CHECK(obj) PyCapsule_CheckExact(obj)
#define CAPSULE_EXTRACT(obj,name) PyCapsule_GetPointer(obj, name)