[libxml2] Fix --with-schemas --without-xpath build
- From: Nick Wellnhofer <nwellnhof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libxml2] Fix --with-schemas --without-xpath build
- Date: Fri, 2 Sep 2022 16:52:03 +0000 (UTC)
commit 884e142dc5c6d503ab90dbe231183ae1a134c5f7
Author: Nick Wellnhofer <wellnhofer aevum de>
Date: Thu Sep 1 22:44:02 2022 +0200
Fix --with-schemas --without-xpath build
xmlXPathInit must be called for schemas.
parser.c | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
---
diff --git a/parser.c b/parser.c
index 63cc9faa..0eb1af18 100644
--- a/parser.c
+++ b/parser.c
@@ -71,6 +71,9 @@
#include <libxml/xmlschemastypes.h>
#include <libxml/relaxng.h>
#endif
+#if defined(LIBXML_XPATH_ENABLED) || defined(LIBXML_SCHEMAS_ENABLED)
+#include <libxml/xpath.h>
+#endif
#include "private/buf.h"
#include "private/enc.h"
@@ -14700,10 +14703,6 @@ xmlSetEntityReferenceFunc(xmlEntityReferenceFunc func)
* *
************************************************************************/
-#ifdef LIBXML_XPATH_ENABLED
-#include <libxml/xpath.h>
-#endif
-
static int xmlParserInitialized = 0;
/**
@@ -14745,7 +14744,7 @@ xmlInitParser(void) {
htmlInitAutoClose();
htmlDefaultSAXHandlerInit();
#endif
-#ifdef LIBXML_XPATH_ENABLED
+#if defined(LIBXML_XPATH_ENABLED) || defined(LIBXML_SCHEMAS_ENABLED)
xmlXPathInit();
#endif
xmlParserInitialized = 1;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]