summaryrefslogtreecommitdiff
path: root/runsuite.c
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@src.gnome.org>2005-07-03 16:09:51 +0000
committerDaniel Veillard <veillard@src.gnome.org>2005-07-03 16:09:51 +0000
commit95175012ecb180e9f40f57455a600401f854075c (patch)
tree1a426f49b1c8403ad64b0417083779ec6fd9bee4 /runsuite.c
parent8fcd2cacd33ebbd6ab578684e1523fa00deb6394 (diff)
downloadlibxml2-95175012ecb180e9f40f57455a600401f854075c.tar.gz
fixing #307823 and a couple of assorted bugs fixed conditionals in
* testapi.c runsuite.c runtest.c: fixing #307823 and a couple of assorted bugs * python/generator.py python/libxml2-python-api.xml: fixed conditionals in generator too * doc/apibuild.py doc/libxml2-api.xml doc/* elfgcchack.h: some cleanups too and rebuilt Daniel
Diffstat (limited to 'runsuite.c')
-rw-r--r--runsuite.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/runsuite.c b/runsuite.c
index 2ec4ffbb..23e98a54 100644
--- a/runsuite.c
+++ b/runsuite.c
@@ -19,6 +19,7 @@
#include <libxml/parserInternals.h>
#include <libxml/tree.h>
#include <libxml/uri.h>
+#if defined(LIBXML_SCHEMAS_ENABLED) && defined(LIBXML_XPATH_ENABLED)
#include <libxml/xmlreader.h>
#include <libxml/xpath.h>
@@ -1099,3 +1100,9 @@ main(int argc ATTRIBUTE_UNUSED, char **argv ATTRIBUTE_UNUSED) {
return(ret);
}
+#else /* !SCHEMAS */
+int
+main(int argc ATTRIBUTE_UNUSED, char **argv ATTRIBUTE_UNUSED) {
+ fprintf(stderr, "runsuite requires support for schemas and xpath in libxml2\n");
+}
+#endif