aboutsummaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@src.gnome.org>2007-06-12 10:04:37 +0000
committerDaniel Veillard <veillard@src.gnome.org>2007-06-12 10:04:37 +0000
commitdb67015afe7061c8e24ddbad7f31c9ac1548be51 (patch)
tree29f35eb96aebe6909b49553449221139737efbd9 /python
parentfcd02adb71893fc1e78629d8effab2f30cbda097 (diff)
downloadandroid_external_libxml2-db67015afe7061c8e24ddbad7f31c9ac1548be51.tar.gz
android_external_libxml2-db67015afe7061c8e24ddbad7f31c9ac1548be51.tar.bz2
android_external_libxml2-db67015afe7061c8e24ddbad7f31c9ac1548be51.zip
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
Diffstat (limited to 'python')
-rw-r--r--python/types.c3
1 files changed, 2 insertions, 1 deletions
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;