aboutsummaryrefslogtreecommitdiffstats
path: root/testReader.c
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@src.gnome.org>2003-09-30 00:43:48 +0000
committerDaniel Veillard <veillard@src.gnome.org>2003-09-30 00:43:48 +0000
commit8127390f0332ddf545fe59e406996deaedfee964 (patch)
tree97c95d55ef3da3185670f73b11b0a608f0450d28 /testReader.c
parent652327a727000b7e1a32d596e05471003c2d3d87 (diff)
downloadandroid_external_libxml2-8127390f0332ddf545fe59e406996deaedfee964.tar.gz
android_external_libxml2-8127390f0332ddf545fe59e406996deaedfee964.tar.bz2
android_external_libxml2-8127390f0332ddf545fe59e406996deaedfee964.zip
added 2 new configure option: --with-reader --with-sax1 to allow removing
* Makefile.am SAX.c SAX2.c configure.in globals.c parser.c parserInternals.c testReader.c testSAX.c xmlIO.c xmllint.c xmlreader.c example/gjobread.c include/libxml/xmlversion.h.in: added 2 new configure option: --with-reader --with-sax1 to allow removing the reader or non-xmlReadxxx() interfaces. Daniel
Diffstat (limited to 'testReader.c')
-rw-r--r--testReader.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/testReader.c b/testReader.c
index 7b19bb2a..a8742501 100644
--- a/testReader.c
+++ b/testReader.c
@@ -8,6 +8,7 @@
#include "libxml.h"
+#ifdef LIBXML_READER_ENABLED
#include <string.h>
#include <stdarg.h>
@@ -130,3 +131,9 @@ int main(int argc, char **argv) {
return(0);
}
+#else
+int main(int argc ATTRIBUTE_UNUSED, char **argv ATTRIBUTE_UNUSED) {
+ printf("%s : xmlReader parser support not compiled in\n", argv[0]);
+ return(0);
+}
+#endif /* LIBXML_READER_ENABLED */