From 85bd291541cbb3ac2aa20070f009307cb9d6b34b Mon Sep 17 00:00:00 2001 From: Iustin Pop Date: Sun, 27 Dec 2009 18:18:05 +0100 Subject: [PATCH] Fix a warning with Python 2.6 MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit … which already defined Py_TYPE. --- acl.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/acl.c b/acl.c index c2da7c1..d8bbee5 100644 --- a/acl.c +++ b/acl.c @@ -53,8 +53,11 @@ #define PyBytes_FromFormat PyString_FromFormat #define PyBytes_ConcatAndDel PyString_ConcatAndDel +/* Python 2.6 already defines Py_TYPE */ +#ifndef Py_TYPE #define Py_TYPE(o) (((PyObject*)(o))->ob_type) #endif +#endif static PyTypeObject ACL_Type; static PyObject* ACL_applyto(PyObject* obj, PyObject* args); -- 2.39.5