From 7ae8e8ac7d5c34495ff81a382b0393f91c84e00c Mon Sep 17 00:00:00 2001 From: Nick Wellnhofer Date: Sat, 22 Feb 2025 21:06:34 +0100 Subject: [PATCH] schemas: Make xmlSchemaDump depend on DEBUG_ENABLED --- include/libxml/xmlschemas.h | 4 ++-- xmlschemas.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/libxml/xmlschemas.h b/include/libxml/xmlschemas.h index e71dc9a1..78073cd2 100644 --- a/include/libxml/xmlschemas.h +++ b/include/libxml/xmlschemas.h @@ -172,11 +172,11 @@ XMLPUBFUN xmlSchemaPtr xmlSchemaParse (xmlSchemaParserCtxtPtr ctxt); XMLPUBFUN void xmlSchemaFree (xmlSchemaPtr schema); -#ifdef LIBXML_OUTPUT_ENABLED +#ifdef LIBXML_DEBUG_ENABLED XMLPUBFUN void xmlSchemaDump (FILE *output, xmlSchemaPtr schema); -#endif /* LIBXML_OUTPUT_ENABLED */ +#endif /* LIBXML_DEBUG_ENABLED */ /* * Interfaces for validating */ diff --git a/xmlschemas.c b/xmlschemas.c index 95be97c9..b3214f50 100644 --- a/xmlschemas.c +++ b/xmlschemas.c @@ -4196,7 +4196,7 @@ xmlSchemaFree(xmlSchemaPtr schema) * * ************************************************************************/ -#ifdef LIBXML_OUTPUT_ENABLED +#ifdef LIBXML_DEBUG_ENABLED static void xmlSchemaTypeDump(xmlSchemaTypePtr type, FILE * output); /* forward */ @@ -4569,7 +4569,7 @@ xmlSchemaDump(FILE * output, xmlSchemaPtr schema) xmlHashScanFull(schema->elemDecl, xmlSchemaElementDump, output); } -#endif /* LIBXML_OUTPUT_ENABLED */ +#endif /* LIBXML_DEBUG_ENABLED */ /************************************************************************ * *