Skip to content

Commit 085ebc3

Browse files
committed
Merge branch 'master' of github.com:xml4r/libxml-ruby
2 parents 3666e6f + 3a76efc commit 085ebc3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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)