summaryrefslogtreecommitdiff
path: root/xml.cc
diff options
context:
space:
mode:
Diffstat (limited to 'xml.cc')
-rw-r--r--xml.cc8
1 files changed, 7 insertions, 1 deletions
diff --git a/xml.cc b/xml.cc
index 0b51469a..63043fbe 100644
--- a/xml.cc
+++ b/xml.cc
@@ -8,7 +8,13 @@
#include <cstring>
extern "C" {
-#include <xmlparse.h> // expat XML parser
+#if defined(HAVE_EXPAT)
+#include <expat.h> // expat XML parser
+#elif defined(HAVE_XMLPARSE)
+#include <xmlparse.h> // expat XML parser
+#else
+#error "No XML parser library defined."
+#endif
}
namespace ledger {