summaryrefslogtreecommitdiff
path: root/testSAX.c
diff options
context:
space:
mode:
Diffstat (limited to 'testSAX.c')
-rw-r--r--testSAX.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/testSAX.c b/testSAX.c
index 0a742a27..edd6d6ae 100644
--- a/testSAX.c
+++ b/testSAX.c
@@ -8,6 +8,7 @@
#include "libxml.h"
+#ifdef LIBXML_SAX1_ENABLED
#include <string.h>
#include <stdarg.h>
@@ -973,3 +974,9 @@ int main(int argc, char **argv) {
return(0);
}
+#else
+int main(int argc ATTRIBUTE_UNUSED, char **argv ATTRIBUTE_UNUSED) {
+ printf("%s : SAX1 parsing support not compiled in\n", argv[0]);
+ return(0);
+}
+#endif /* LIBXML_SAX1_ENABLED */