summaryrefslogtreecommitdiff
path: root/python/generic.h
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2009-06-25 18:53:47 +0200
committerJulian Andres Klode <jak@debian.org>2009-06-25 18:53:47 +0200
commite80500e7173387acc7a6b6be9d7424a4343ec036 (patch)
treed6bb50acbf46708cde2f22cb173bcf998bc9a921 /python/generic.h
parenta4e69e11e544844034c3fbdc6789d5573f802117 (diff)
downloadpython-apt-e80500e7173387acc7a6b6be9d7424a4343ec036.tar.gz
python: Use PyVarObject_HEAD_INIT() instead of PyObject_HEAD_INIT().
This is related to PEP 3123 and fixes some compiler warnings.
Diffstat (limited to 'python/generic.h')
-rw-r--r--python/generic.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/python/generic.h b/python/generic.h
index 182b1b53..118917cb 100644
--- a/python/generic.h
+++ b/python/generic.h
@@ -63,6 +63,7 @@ typedef int Py_ssize_t;
#define PyBytes_Check PyString_Check
#define PyBytes_AsString PyString_AsString
#define PyBytes_AsStringAndSize PyString_AsStringAndSize
+#define PyVarObject_HEAD_INIT(type, size) PyObject_HEAD_INIT(type) size,
#endif
#endif