Abwärtskompatibilität zu alten (pre-2.6) Versionen von libxml.

Die Uni Paderborn hat so einen Scheiss installiert.
This commit is contained in:
Enno Rehling 2004-07-09 09:48:10 +00:00
parent 3449399eec
commit d048baa4c7
1 changed files with 4 additions and 0 deletions

View File

@ -94,7 +94,11 @@ read_xml(const char * filename)
xml_reader * reader = xmlReaders; xml_reader * reader = xmlReaders;
xmlDocPtr doc; xmlDocPtr doc;
#ifdef XML_PARSE_XINCLUDE
doc = xmlReadFile(filename, NULL, XML_PARSE_XINCLUDE); doc = xmlReadFile(filename, NULL, XML_PARSE_XINCLUDE);
#else
doc = xmlParseFile(filename);
#endif
if (doc==NULL) { if (doc==NULL) {
log_error(("could not open %s\n", filename)); log_error(("could not open %s\n", filename));
return -1; return -1;