aboutsummaryrefslogtreecommitdiffstats
path: root/xpointer.c
diff options
context:
space:
mode:
Diffstat (limited to 'xpointer.c')
-rw-r--r--xpointer.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/xpointer.c b/xpointer.c
index 4a28b466..2a61003b 100644
--- a/xpointer.c
+++ b/xpointer.c
@@ -26,9 +26,6 @@
#include <libxml/uri.h>
#include <libxml/xpath.h>
#include <libxml/xpathInternals.h>
-#ifdef LIBXML_DEBUG_ENABLED
-#include <libxml/debugXML.h>
-#endif
#include <libxml/xmlerror.h>
#ifdef LIBXML_XPTR_ENABLED
@@ -37,6 +34,11 @@
#define XPTR_XMLNS_SCHEME
/* #define DEBUG_RANGES */
+#ifdef DEBUG_RANGES
+#ifdef LIBXML_DEBUG_ENABLED
+#include <libxml/debugXML.h>
+#endif
+#endif
#define TODO \
xmlGenericError(xmlGenericErrorContext, \