1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
|
Description: Fix build failure with libxml >= 2.12
Author: Anton Gladky <gladk@debian.org>
Bug-Debian: https://bugs.debian.org/1073822
--- sight.orig/lib/__/core/runtime/detail/io/validator.cpp
+++ sight/lib/__/core/runtime/detail/io/validator.cpp
@@ -86,7 +86,7 @@
); schema_parser_context != nullptr)
{
// Set the structured error callback
- xmlSchemaSetParserStructuredErrors(schema_parser_context.get(), validator::error_handler, this);
+ xmlSchemaSetParserStructuredErrors(schema_parser_context.get(), reinterpret_cast<xmlStructuredErrorFunc>(validator::error_handler), this);
// Load XML schema content
if(!m_schema)
@@ -105,7 +105,7 @@
)))
{
// Set the structured error callback
- xmlSchemaSetValidStructuredErrors(m_schema_valid_context.get(), validator::error_handler, this);
+ xmlSchemaSetValidStructuredErrors(m_schema_valid_context.get(), reinterpret_cast<xmlStructuredErrorFunc>(validator::error_handler), this);
}
}
else
--- sight.orig/lib/__/core/runtime/detail/io/validator.hpp
+++ sight/lib/__/core/runtime/detail/io/validator.hpp
@@ -27,7 +27,7 @@
#include "core/runtime/types.hpp"
#include "core/runtime/validator.hpp"
-#include <libxml/xmlschemastypes.h>
+#include <libxml/xmlschemas.h>
#include <libxml/xmlversion.h>
#include <filesystem>
|