diff options
author | John Wiegley <johnw@newartisans.com> | 2008-04-13 05:23:11 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2008-04-13 05:23:11 -0400 |
commit | cf1870a5822fc05675bc8843903991f744e39d2a (patch) | |
tree | af9502ee221ef1f322a5a48a3d51b55811e74f68 /main.cc | |
parent | 50c689e1ae75a304ef7431fa489360076e837120 (diff) | |
download | fork-ledger-cf1870a5822fc05675bc8843903991f744e39d2a.tar.gz fork-ledger-cf1870a5822fc05675bc8843903991f744e39d2a.tar.bz2 fork-ledger-cf1870a5822fc05675bc8843903991f744e39d2a.zip |
Test for both HAVE_EXPAT and HAVE_XMLPARSE.
Diffstat (limited to 'main.cc')
-rw-r--r-- | main.cc | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -314,7 +314,7 @@ int parse_and_report(int argc, char * argv[], char * envp[]) // Parse initialization files, ledger data, price database, etc. std::auto_ptr<binary_parser_t> bin_parser(new binary_parser_t); -#ifdef HAVE_XMLPARSE +#if defined(HAVE_EXPAT) || defined(HAVE_XMLPARSE) std::auto_ptr<xml_parser_t> xml_parser(new xml_parser_t); std::auto_ptr<gnucash_parser_t> gnucash_parser(new gnucash_parser_t); #endif @@ -325,7 +325,7 @@ int parse_and_report(int argc, char * argv[], char * envp[]) std::auto_ptr<textual_parser_t> text_parser(new textual_parser_t); register_parser(bin_parser.get()); -#ifdef HAVE_XMLPARSE +#if defined(HAVE_EXPAT) || defined(HAVE_XMLPARSE) register_parser(xml_parser.get()); register_parser(gnucash_parser.get()); #endif @@ -336,7 +336,7 @@ int parse_and_report(int argc, char * argv[], char * envp[]) register_parser(text_parser.get()); parse_ledger_data(journal.get(), bin_parser.get(), text_parser.get() -#ifdef HAVE_XMLPARSE +#if defined(HAVE_EXPAT) || defined(HAVE_XMLPARSE) , xml_parser.get() #endif ); |