filters/xsltfilter: fix FTBFS against libxml 2.13+

See: c011e7605d
Closes: https://mirror.git.trinitydesktop.org/gitea/TDE/koffice/issues/96
Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
(cherry picked from commit 8870815cc6)
r14.1.x
Alexander Golubev 1 month ago
parent 0bd9d54598
commit da1d4d6aae

@ -287,7 +287,11 @@ int XSLTProc::parse()
* disable CDATA from being built in the document tree
*/
xmlDefaultSAXHandlerInit();
#if LIBXML_VERSION < 21300
// In 2.13.0 this global variable was made constant and claimed that
// it "hasn't had an effect for a long time"
xmlDefaultSAXHandler.cdataBlock = NULL;
#endif // LIBXML_VERSION
if ((cur != NULL) && (cur->errors == 0))
{

@ -287,7 +287,11 @@ int XSLTProc::parse()
* disable CDATA from being built in the document tree
*/
xmlDefaultSAXHandlerInit();
#if LIBXML_VERSION < 21300
// In 2.13.0 this global variable was made constant and claimed that
// it "hasn't had an effect for a long time"
xmlDefaultSAXHandler.cdataBlock = NULL;
#endif // LIBXML_VERSION
if ((cur != NULL) && (cur->errors == 0))
{

Loading…
Cancel
Save