diff options
Diffstat (limited to 'doc/examples/parse4.c')
| -rw-r--r-- | doc/examples/parse4.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/doc/examples/parse4.c b/doc/examples/parse4.c index fe57894..3e28056 100644 --- a/doc/examples/parse4.c +++ b/doc/examples/parse4.c @@ -14,6 +14,7 @@ #include <libxml/parser.h> #include <libxml/tree.h> +#ifdef LIBXML_PUSH_ENABLED static FILE *desc; /** @@ -134,3 +135,9 @@ int main(int argc, char **argv) { xmlMemoryDump(); return(0); } +#else /* ! LIBXML_PUSH_ENABLED */ +int main(int argc, char **argv) { + fprintf(stderr, "Library not compiled with push parser support\n"); + return(1); +} +#endif |
