From db67015afe7061c8e24ddbad7f31c9ac1548be51 Mon Sep 17 00:00:00 2001 From: Daniel Veillard Date: Tue, 12 Jun 2007 10:04:37 +0000 Subject: try to allow compilation on old python version should fix #398125 Daniel * python/types.c: try to allow compilation on old python version should fix #398125 Daniel svn path=/trunk/; revision=3632 --- python/types.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'python') diff --git a/python/types.c b/python/types.c index 5c5dcca2..9a17749e 100644 --- a/python/types.c +++ b/python/types.c @@ -525,6 +525,7 @@ libxml_xmlXPathObjectPtrConvert(PyObject * obj) ret = xmlXPathNewFloat((double) PyInt_AS_LONG(obj)); +#ifdef PyBool_Check } else if PyBool_Check (obj) { if (obj == Py_True) { @@ -533,7 +534,7 @@ libxml_xmlXPathObjectPtrConvert(PyObject * obj) else { ret = xmlXPathNewBoolean(0); } - +#endif } else if PyString_Check (obj) { xmlChar *str; -- cgit v1.2.3