diff options
author | Daniel Veillard <veillard@src.gnome.org> | 2007-06-12 10:04:37 +0000 |
---|---|---|
committer | Daniel Veillard <veillard@src.gnome.org> | 2007-06-12 10:04:37 +0000 |
commit | db67015afe7061c8e24ddbad7f31c9ac1548be51 (patch) | |
tree | 29f35eb96aebe6909b49553449221139737efbd9 /python | |
parent | fcd02adb71893fc1e78629d8effab2f30cbda097 (diff) | |
download | android_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.c | 3 |
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; |