summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)