summaryrefslogtreecommitdiff
path: root/doc/examples/reader3.c
diff options
context:
space:
mode:
Diffstat (limited to 'doc/examples/reader3.c')
-rw-r--r--doc/examples/reader3.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/examples/reader3.c b/doc/examples/reader3.c
index 2da7532..acbff4f 100644
--- a/doc/examples/reader3.c
+++ b/doc/examples/reader3.c
@@ -15,7 +15,7 @@
#include <stdio.h>
#include <libxml/xmlreader.h>
-#ifdef LIBXML_READER_ENABLED
+#if defined(LIBXML_READER_ENABLED) && defined(LIBXML_PATTERN_ENABLED)
/**
* streamFile:
@@ -113,7 +113,7 @@ int main(int argc, char **argv) {
#else
int main(void) {
- fprintf(stderr, "XInclude support not compiled in\n");
+ fprintf(stderr, "Reader or Pattern support not compiled in\n");
exit(1);
}
#endif