[xml] PATCH: xmllint doesn not compile when HTML disabled



diff -bruw orig/xmllint.c  xmllint.c
--- orig/xmllint.c       2003-10-20 18:16:07.000000000 +0200
+++ xmllint.c   2004-06-14 10:07:07.000000000 +0200
@@ -981,7 +981,11 @@
#endif /* LIBXML_TREE_ENABLED */

#ifdef LIBXML_VALID_ENABLED
-    if ((insert) && (!html)) {
+    if ((insert)
+#ifdef LIBXML_HTML_ENABLED
+                 && (!html)
+#endif
+                           ) {
        const xmlChar* list[256];
       int nb, i;
       xmlNodePtr node;
@@ -1239,7 +1243,11 @@
#endif

#ifdef LIBXML_DEBUG_ENABLED
-    if ((debugent) && (!html))
+    if ((debugent)
+#ifdef LIBXML_HTML_ENABLED
+                   && (!html)
+#endif
+                              )
       xmlDebugDumpEntities(stderr, doc);
#endif

_________________________________________________________________
Wimbledon, wie wint? Durf je te wedden http://www.msn.be/sport/bookmaker2/default.asp




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]