inverse the macro definition condition in c87ad03.
authorAles Kozumplik <akozumpl@redhat.com>
Fri, 18 Nov 2011 10:36:20 +0000 (11:36 +0100)
committerAles Kozumplik <akozumpl@redhat.com>
Fri, 18 Nov 2011 10:36:20 +0000 (11:36 +0100)
- thanks zpavlas for pointing this out.

python/rpmsystem-py.h

index b730973..58ac1ba 100644 (file)
@@ -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)