From 56bf4ea27cf05c2b6fb872d61daf5e450fe2cda1 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Wed, 19 Oct 2005 23:35:37 +0000 Subject: (parse_and_report): Added a check for HAVE_EXPAT in addition to HAVE_XMLPARSE, which was causing the xml/gnucash parsers not to be registered! --- main.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'main.cc') diff --git a/main.cc b/main.cc index ddd1b4cd..cec321e8 100644 --- a/main.cc +++ b/main.cc @@ -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 bin_parser(new binary_parser_t); -#ifdef HAVE_XMLPARSE +#if defined(HAVE_EXPAT) || defined(HAVE_XMLPARSE) std::auto_ptr xml_parser(new xml_parser_t); std::auto_ptr gnucash_parser(new gnucash_parser_t); #endif @@ -325,7 +325,7 @@ int parse_and_report(int argc, char * argv[], char * envp[]) std::auto_ptr 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 ); -- cgit v1.2.3