summaryrefslogtreecommitdiff
path: root/testHTML.c
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@src.gnome.org>2004-01-13 20:51:03 +0000
committerDaniel Veillard <veillard@src.gnome.org>2004-01-13 20:51:03 +0000
commitc2c0d142175989f17f2231721d12ef714a292eb2 (patch)
tree325c2ee4d07686829a3e1747ae185bbf8ecf0d66 /testHTML.c
parent87247e87408561aee625b2e800ea3c13211af897 (diff)
downloadlibxml2-c2c0d142175989f17f2231721d12ef714a292eb2.tar.gz
another small patch from Mark Vadoc Daniel
* testHTML.c: another small patch from Mark Vadoc Daniel
Diffstat (limited to 'testHTML.c')
-rw-r--r--testHTML.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/testHTML.c b/testHTML.c
index 5df5bb45..cd3516e7 100644
--- a/testHTML.c
+++ b/testHTML.c
@@ -709,6 +709,7 @@ parseAndPrintFile(char *filename) {
/*
* build an HTML tree from a string;
*/
+#ifdef LIBXML_PUSH_ENABLED
if (push) {
FILE *f;
@@ -736,6 +737,9 @@ parseAndPrintFile(char *filename) {
} else {
doc = htmlReadFile(filename, NULL, options);
}
+#else
+ doc = htmlReadFile(filename,NULL,options);
+#endif
if (doc == NULL) {
xmlGenericError(xmlGenericErrorContext,
"Could not parse %s\n", filename);