kovidgoyal / html5-parser

Fast C based HTML 5 parsing for python
Apache License 2.0
678 stars 33 forks source link

add compatibility with libxml2 2.12 #30

Closed eli-schwartz closed 10 months ago

eli-schwartz commented 10 months ago

The xmlParserVersion function was indirectly included via a maze of includes:

tree.h -> xmlmemory.h -> globals.h

the final header containing the definition of this function, but after an upstream refactor this is canonically defined in parser.h instead.

The latter header includes globals.h on old versions anyway.

stdlib.h was also required, but only indirectly included via libxml2's own includes.

Fixes: https://bugs.gentoo.org/917554