summaryrefslogtreecommitdiff
path: root/schematron.c
diff options
context:
space:
mode:
authorNicolas Le Cam <niko.lecam@gmail.com>2013-06-14 22:20:37 +0200
committerDaniel Veillard <veillard@redhat.com>2014-02-10 10:33:31 +0800
commit1af8b7b22e3bb569b2c27642064224bc14a1924a (patch)
tree78f033dfb200ba8e1afec43e281bd97c3a2bcb76 /schematron.c
parent77b5b46409d48fa417205aea580db8bb7c8f5d4a (diff)
downloadlibxml2-1af8b7b22e3bb569b2c27642064224bc14a1924a.tar.gz
Fix compilation with minimum and schematron.
Add a hard dependancy on tree. Disable write and close callbacks when output is disabled.
Diffstat (limited to 'schematron.c')
-rw-r--r--schematron.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/schematron.c b/schematron.c
index 537b8685..eb4befeb 100644
--- a/schematron.c
+++ b/schematron.c
@@ -165,8 +165,10 @@ struct _xmlSchematronValidCtxt {
FILE *outputFile; /* if using XML_SCHEMATRON_OUT_FILE */
xmlBufferPtr outputBuffer; /* if using XML_SCHEMATRON_OUT_BUFFER */
+#ifdef LIBXML_OUTPUT_ENABLED
xmlOutputWriteCallback iowrite; /* if using XML_SCHEMATRON_OUT_IO */
xmlOutputCloseCallback ioclose;
+#endif
void *ioctx;
/* error reporting data */