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
diff --git a/ChangeLog b/ChangeLog
index f218f03..c5bb2ff 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Tue Jun 12 12:03:36 CEST 2007 Daniel Veillard <daniel@veillard.com>
+
+	* python/types.c: try to allow compilation on old python version
+	  should fix #398125
+
 Tue Jun 12 11:48:15 CEST 2007 Daniel Veillard <daniel@veillard.com>
 
 	* HTMLtree.c: htmlNodeDumpFormatOutput didn't handle XML_ATTRIBUTE_NODe
diff --git a/python/types.c b/python/types.c
index 5c5dcca..9a17749 100644
--- a/python/types.c
+++ b/python/types.c
@@ -525,6 +525,7 @@
 
         ret = xmlXPathNewFloat((double) PyInt_AS_LONG(obj));
 
+#ifdef PyBool_Check
     } else if PyBool_Check (obj) {
 
         if (obj == Py_True) {
@@ -533,7 +534,7 @@
         else {
           ret = xmlXPathNewBoolean(0);
         }
-
+#endif
     } else if PyString_Check
         (obj) {
         xmlChar *str;