Skip to content

Commit

Permalink
Fix #213. Last update was not backwards compatible.
Browse files Browse the repository at this point in the history
  • Loading branch information
cfisoi committed Mar 12, 2024
1 parent 2852b92 commit 3a76efc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ext/libxml/ruby_xml_error.c
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,11 @@ VALUE rxml_error_wrap(const xmlError *xerror)
}

/* Hook that receives xml error message */
#if LIBXML_VERSION >= 212000
static void structuredErrorFunc(void *userData, const xmlError *xerror)
#else
static void structuredErrorFunc(void *userData, xmlErrorPtr xerror)
#endif
{
VALUE error = rxml_error_wrap(xerror);

Expand Down

0 comments on commit 3a76efc

Please sign in to comment.