Skip to content

Commit 15a4892

Browse files
committed
parser: Make xmlCtxtGetValidCtxt depend on VALID_ENABLED
1 parent fee54bd commit 15a4892

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

include/libxml/parser.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1458,8 +1458,10 @@ XMLPUBFUN int
14581458
xmlCtxtIsHtml (xmlParserCtxtPtr ctxt);
14591459
XMLPUBFUN int
14601460
xmlCtxtIsStopped (xmlParserCtxtPtr ctxt);
1461+
#ifdef LIBXML_VALID_ENABLED
14611462
XMLPUBFUN xmlValidCtxtPtr
14621463
xmlCtxtGetValidCtxt (xmlParserCtxtPtr ctxt);
1464+
#endif
14631465
XMLPUBFUN const xmlChar *
14641466
xmlCtxtGetVersion (xmlParserCtxtPtr ctxt);
14651467
XMLPUBFUN const xmlChar *

parserInternals.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3323,6 +3323,7 @@ xmlCtxtIsStopped(xmlParserCtxtPtr ctxt) {
33233323
return(PARSER_STOPPED(ctxt));
33243324
}
33253325

3326+
#ifdef LIBXML_VALID_ENABLED
33263327
/**
33273328
* xmlCtxtGetValidCtxt:
33283329
* @ctxt: parser context
@@ -3338,6 +3339,7 @@ xmlCtxtGetValidCtxt(xmlParserCtxtPtr ctxt) {
33383339

33393340
return(&ctxt->vctxt);
33403341
}
3342+
#endif
33413343

33423344
/************************************************************************
33433345
* *

0 commit comments

Comments
 (0)