Skip to content

Commit 3a76efc

Browse files
committed
Fix #213. Last update was not backwards compatible.
1 parent 2852b92 commit 3a76efc

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

ext/libxml/ruby_xml_error.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,11 @@ VALUE rxml_error_wrap(const xmlError *xerror)
9797
}
9898

9999
/* Hook that receives xml error message */
100+
#if LIBXML_VERSION >= 212000
100101
static void structuredErrorFunc(void *userData, const xmlError *xerror)
102+
#else
103+
static void structuredErrorFunc(void *userData, xmlErrorPtr xerror)
104+
#endif
101105
{
102106
VALUE error = rxml_error_wrap(xerror);
103107

0 commit comments

Comments
 (0)