1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-10-24 13:33:01 +03:00

build: Fix build when certain modules are disabled

This commit is contained in:
Nick Wellnhofer
2023-09-21 01:29:40 +02:00
parent 9b5cce7a71
commit da274bfa55
9 changed files with 35 additions and 11 deletions

View File

@@ -80,8 +80,12 @@ struct _htmlEntityDesc {
const char *desc; /* the description */
};
#define XML_GLOBALS_HTML \
XML_OP(htmlDefaultSAXHandler, xmlSAXHandlerV1, XML_DEPRECATED)
#ifdef LIBXML_SAX1_ENABLED
#define XML_GLOBALS_HTML \
XML_OP(htmlDefaultSAXHandler, xmlSAXHandlerV1, XML_DEPRECATED)
#else
#define XML_GLOBALS_HTML
#endif
#define XML_OP XML_DECLARE_GLOBAL
XML_GLOBALS_HTML