summaryrefslogtreecommitdiff
path: root/textual.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2005-09-26 05:40:55 +0000
committerJohn Wiegley <johnw@newartisans.com>2008-04-13 02:41:18 -0400
commitb462a8bf5076ea7376acdc8f7e12054c7f70bdb9 (patch)
treee65bd9c999f3e6f00e138fb3bda87e41a5b44a06 /textual.cc
parent1d49b9451226ec2d2a52c247421dd9d3f9aa582c (diff)
downloadledger-b462a8bf5076ea7376acdc8f7e12054c7f70bdb9.tar.gz
ledger-b462a8bf5076ea7376acdc8f7e12054c7f70bdb9.tar.bz2
ledger-b462a8bf5076ea7376acdc8f7e12054c7f70bdb9.zip
*** empty log message ***
Diffstat (limited to 'textual.cc')
-rw-r--r--textual.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/textual.cc b/textual.cc
index 51237fe8..e15a95e8 100644
--- a/textual.cc
+++ b/textual.cc
@@ -400,7 +400,7 @@ bool textual_parser_t::test(std::istream& in) const
in.read(buf, 5);
if (std::strncmp(buf, "<?xml", 5) == 0) {
-#ifdef HAVE_XMLPARSE
+#if defined(HAVE_EXPAT) || defined(HAVE_XMLPARSE)
throw parse_error(path, linenum, "Ledger file contains XML data, but format was not recognized");
#else
throw parse_error(path, linenum, "Ledger file contains XML data, but no XML support present");