projects
/
platform
/
upstream
/
rpm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c87ad03
)
inverse the macro definition condition in c87ad03.
author
Ales Kozumplik
<akozumpl@redhat.com>
Fri, 18 Nov 2011 10:36:20 +0000
(11:36 +0100)
committer
Ales 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
patch
|
blob
|
history
diff --git
a/python/rpmsystem-py.h
b/python/rpmsystem-py.h
index
b730973
..
58ac1ba
100644
(file)
--- 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)