summaryrefslogtreecommitdiff
path: root/main.cc
diff options
context:
space:
mode:
Diffstat (limited to 'main.cc')
-rw-r--r--main.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.cc b/main.cc
index 77d78d8e..ddd1b4cd 100644
--- a/main.cc
+++ b/main.cc
@@ -473,7 +473,7 @@ def vmax(d, val):\n\
else if (command == "x")
formatter = new format_emacs_transactions(*out);
else if (command == "X") {
-#ifdef HAVE_XMLPARSE
+#if defined(HAVE_EXPAT) || defined(HAVE_XMLPARSE)
formatter = new format_xml_entries(*out, config.show_totals);
#else
throw error("XML support was not compiled into this copy of Ledger");