diff options
author | Ales Kozumplik <akozumpl@redhat.com> | 2011-11-18 11:36:20 +0100 |
---|---|---|
committer | Ales Kozumplik <akozumpl@redhat.com> | 2011-11-18 11:36:20 +0100 |
commit | e1922aa5feb59b9f3fc7b879e24c9472983dbd91 (patch) | |
tree | 09f5b49254f3627dee66b5a627c1de8eb230f319 | |
parent | c87ad03260fea33da6d64f65709981b06d4e135a (diff) | |
download | librpm-tizen-e1922aa5feb59b9f3fc7b879e24c9472983dbd91.tar.gz librpm-tizen-e1922aa5feb59b9f3fc7b879e24c9472983dbd91.tar.bz2 librpm-tizen-e1922aa5feb59b9f3fc7b879e24c9472983dbd91.zip |
inverse the macro definition condition in c87ad03.
- thanks zpavlas for pointing this out.
-rw-r--r-- | python/rpmsystem-py.h | 2 |
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) |