[xml] patch to make gcc 2.96 happy



I have a small patch (attached) to make gcc 2.96 happy (don't ask
me why it did not like the original code). I hope nobody would mind
if I check it in.

Thanks,
Aleksey
--- testapi.c.orig      Sat Apr  2 00:44:00 2005
+++ testapi.c   Tue Jun 28 04:36:32 2005
@@ -811,7 +811,7 @@
     xmlRelaxNGFreeParserCtxt(val);
 }
 #endif
-#ifdef LIBXML_HTML_ENABLED
+#ifdef LIBXML_HTTP_ENABLED
 static void desret_const_htmlEntityDesc_ptr(const htmlEntityDesc * val ATTRIBUTE_UNUSED) {
 }
 static void desret_xmlNanoHTTPCtxtPtr(void *val) {
@@ -1905,7 +1905,7 @@
 test_htmlEntityLookup(void) {
     int test_ret = 0;
 
-#if defined(LIBXML_HTML_ENABLED)
+#ifdef LIBXML_HTTP_ENABLED
     int mem_base;
     const htmlEntityDesc * ret_val;
     xmlChar * name; /* the entity name */
@@ -1939,7 +1939,7 @@
 test_htmlEntityValueLookup(void) {
     int test_ret = 0;
 
-#if defined(LIBXML_HTML_ENABLED)
+#ifdef LIBXML_HTTP_ENABLED
     int mem_base;
     const htmlEntityDesc * ret_val;
     unsigned int value; /* the entity's unicode value */
@@ -2321,7 +2321,7 @@
 test_htmlParseEntityRef(void) {
     int test_ret = 0;
 
-#if defined(LIBXML_HTML_ENABLED)
+#ifdef LIBXML_HTTP_ENABLED
     int mem_base;
     const htmlEntityDesc * ret_val;
     htmlParserCtxtPtr ctxt; /* an HTML parser context */


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