mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-07-05 19:01:18 +03:00
Bug 676544 - fails to build with --without-sax1
Added some ifdef'd LIBXML_SAX1_ENABLED to make it buildable with --without-sax1 configure option.
This commit is contained in:
committed by
Daniel Veillard
parent
236ea1ea90
commit
961b535c10
@ -1365,6 +1365,7 @@ libxml_htmlCreatePushParser(ATTRIBUTE_UNUSED PyObject * self,
|
||||
PyObject *
|
||||
libxml_xmlSAXParseFile(ATTRIBUTE_UNUSED PyObject * self, PyObject * args)
|
||||
{
|
||||
#ifdef LIBXML_SAX1_ENABLED
|
||||
int recover;
|
||||
const char *URI;
|
||||
PyObject *pyobj_SAX = NULL;
|
||||
@ -1386,6 +1387,7 @@ libxml_xmlSAXParseFile(ATTRIBUTE_UNUSED PyObject * self, PyObject * args)
|
||||
Py_INCREF(pyobj_SAX);
|
||||
/* The reference is released in pythonEndDocument() */
|
||||
xmlSAXUserParseFile(SAX, pyobj_SAX, URI);
|
||||
#endif /* LIBXML_SAX1_ENABLED */
|
||||
Py_INCREF(Py_None);
|
||||
return (Py_None);
|
||||
}
|
||||
|
Reference in New Issue
Block a user