diff options
| author | Mike Hommey <mh@glandium.org> | 2004-07-06 12:57:17 +0000 |
|---|---|---|
| committer | Mike Hommey <mh@glandium.org> | 2004-07-06 12:57:17 +0000 |
| commit | c14c53a3645d81281058d4bb4cff24fa8d6faf33 (patch) | |
| tree | 29bccc2e7499af078a3d1cdcfb517a1dee891be5 /doc/examples/parse4.c | |
| parent | d4e028c96af89ade493b440d4f2de6b684c03a06 (diff) | |
| download | libxml2-upstream/2.6.11.tar.gz | |
Load /tmp/tmp.DIvcnD/libxml2-2.6.11 intoupstream/2.6.11
packages/libxml2/branches/upstream/current.
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 |
