mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-10-28 23:14:57 +03:00
Support catalog and threads tests under --without-sax1
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
|
||||
#if defined(LIBXML_THREAD_ENABLED) && defined(LIBXML_CATALOG_ENABLED) && defined(LIBXML_SAX1_ENABLED)
|
||||
#if defined(LIBXML_THREAD_ENABLED) && defined(LIBXML_CATALOG_ENABLED)
|
||||
#include <libxml/globals.h>
|
||||
#include <libxml/threads.h>
|
||||
#include <libxml/parser.h>
|
||||
@@ -61,7 +61,11 @@ thread_specific_data(void *private_data)
|
||||
xmlDoValidityCheckingDefaultValue = 1;
|
||||
xmlGenericErrorContext = stderr;
|
||||
}
|
||||
#ifdef LIBXML_SAX1_ENABLED
|
||||
myDoc = xmlParseFile(filename);
|
||||
#else
|
||||
myDoc = xmlReadFile(filename, NULL, XML_WITH_CATALOG);
|
||||
#endif
|
||||
if (myDoc) {
|
||||
xmlFreeDoc(myDoc);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user