summaryrefslogtreecommitdiff
path: root/SAX.c
diff options
context:
space:
mode:
Diffstat (limited to 'SAX.c')
-rw-r--r--SAX.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/SAX.c b/SAX.c
index 08e8588..05061b6 100644
--- a/SAX.c
+++ b/SAX.c
@@ -28,6 +28,7 @@
#include <libxml/globals.h>
#include <libxml/SAX2.h>
+#ifdef LIBXML_LEGACY_ENABLED
#ifdef LIBXML_SAX1_ENABLED
/**
* initxmlDefaultSAXHandler:
@@ -76,7 +77,6 @@ initxmlDefaultSAXHandler(xmlSAXHandlerV1 *hdlr, int warning)
hdlr->initialized = 1;
}
-#endif /* LIBXML_SAX1_ENABLED */
#ifdef LIBXML_HTML_ENABLED
@@ -128,7 +128,6 @@ inithtmlDefaultSAXHandler(xmlSAXHandlerV1 *hdlr)
#endif /* LIBXML_HTML_ENABLED */
#ifdef LIBXML_DOCB_ENABLED
-
/**
* initdocbDefaultSAXHandler:
* @hdlr: the SAX handler
@@ -174,3 +173,7 @@ initdocbDefaultSAXHandler(xmlSAXHandlerV1 *hdlr)
}
#endif /* LIBXML_DOCB_ENABLED */
+
+#endif /* LIBXML_SAX1_ENABLED */
+
+#endif /* LIBXML_LEGACY_ENABLED */