fix bug #63752 of compiling libxml with a non standard set of options
* encoding.c global.data globals.c testThreads.c: fix bug #63752
of compiling libxml with a non standard set of options
Daniel
diff --git a/globals.c b/globals.c
index e5b5bc8..565de0e 100644
--- a/globals.c
+++ b/globals.c
@@ -262,8 +262,12 @@
* Perform initialisation as required by libxml
*/
initxmlDefaultSAXHandler(&gs->xmlDefaultSAXHandler, 1);
+#ifdef LIBXML_DOCB_ENABLED
initdocbDefaultSAXHandler(&gs->docbDefaultSAXHandler);
+#endif
+#ifdef LIBXML_HTML_ENABLED
inithtmlDefaultSAXHandler(&gs->htmlDefaultSAXHandler);
+#endif
initGenericErrorDefaultFunc(&gs->xmlGenericError);
gs->oldXMLWDcompatibility = 0;
@@ -299,13 +303,7 @@
gs->xmlSubstituteEntitiesDefaultValue = 0;
}
-/*
- * Everything starting from the line below is
- * Automatically generated by build_glob.py.
- * Do not modify the previous line.
- */
-
-
+#ifdef LIBXML_DOCB_ENABLED
extern xmlSAXHandler docbDefaultSAXHandler;
#undef docbDefaultSAXHandler
xmlSAXHandler *
@@ -315,7 +313,9 @@
else
return (&xmlGetGlobalState()->docbDefaultSAXHandler);
}
+#endif
+#ifdef LIBXML_HTML_ENABLED
extern xmlSAXHandler htmlDefaultSAXHandler;
#undef htmlDefaultSAXHandler
xmlSAXHandler *
@@ -325,6 +325,14 @@
else
return (&xmlGetGlobalState()->htmlDefaultSAXHandler);
}
+#endif
+
+/*
+ * Everything starting from the line below is
+ * Automatically generated by build_glob.py.
+ * Do not modify the previous line.
+ */
+
extern int oldXMLWDcompatibility;
#undef oldXMLWDcompatibility