aboutsummaryrefslogtreecommitdiffstats
path: root/debugXML.c
diff options
context:
space:
mode:
authorNicolas Le Cam <niko.lecam@gmail.com>2013-06-14 21:11:27 +0200
committerDaniel Veillard <veillard@redhat.com>2014-02-10 10:26:30 +0800
commit3313d14f9d71e5beeb51169688b69f3a34fe4489 (patch)
treee5084875fe4b3e2a7083fbed97f4573cfac8654e /debugXML.c
parentc9ecf45d1bf4ed9bdfed7f9733687a4df1daf897 (diff)
downloadandroid_external_libxml2-3313d14f9d71e5beeb51169688b69f3a34fe4489.tar.gz
android_external_libxml2-3313d14f9d71e5beeb51169688b69f3a34fe4489.tar.bz2
android_external_libxml2-3313d14f9d71e5beeb51169688b69f3a34fe4489.zip
Don't use xmlValidateName() when not available.
Fix compilation with minimum and debug.
Diffstat (limited to 'debugXML.c')
-rw-r--r--debugXML.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/debugXML.c b/debugXML.c
index 3c137839..8aab7032 100644
--- a/debugXML.c
+++ b/debugXML.c
@@ -254,10 +254,12 @@ xmlCtxtCheckName(xmlDebugCtxtPtr ctxt, const xmlChar * name)
xmlDebugErr(ctxt, XML_CHECK_NO_NAME, "Name is NULL");
return;
}
+#if defined(LIBXML_TREE_ENABLED) || defined(LIBXML_SCHEMAS_ENABLED)
if (xmlValidateName(name, 0)) {
xmlDebugErr3(ctxt, XML_CHECK_NOT_NCNAME,
"Name is not an NCName '%s'", (const char *) name);
}
+#endif
if ((ctxt->dict != NULL) &&
(!xmlDictOwns(ctxt->dict, name)) &&
((ctxt->doc == NULL) ||