summaryrefslogtreecommitdiff
path: root/gnucash.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gnucash.cc')
-rw-r--r--gnucash.cc9
1 files changed, 8 insertions, 1 deletions
diff --git a/gnucash.cc b/gnucash.cc
index 38b31227..9b107c1d 100644
--- a/gnucash.cc
+++ b/gnucash.cc
@@ -2,13 +2,20 @@
#include "journal.h"
#include "format.h"
#include "error.h"
+#include "acconf.h"
#include <iostream>
#include <sstream>
#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 {