mirror of
https://gitlab.gnome.org/GNOME/libxslt
synced 2025-07-07 16:21:10 +03:00
python/types.c: Fix building against older libxml2
The XML_IGNORE_FPTR_CAST_WARNINGS and XML_POP_WARNINGS macros were added very recently, so define them as nothing if they aren't defined upon including the libxml2 headers.
This commit is contained in:
@ -29,6 +29,13 @@ xmlParserInputPtr xmlNoNetExternalEntityLoader(const char *URL,
|
||||
|
||||
#ifdef _WIN32
|
||||
|
||||
#ifndef XML_IGNORE_FPTR_CAST_WARNINGS
|
||||
#define XML_IGNORE_FPTR_CAST_WARNINGS
|
||||
#endif
|
||||
#ifndef XML_POP_WARNINGS
|
||||
#define XML_POP_WARNINGS
|
||||
#endif
|
||||
|
||||
#include <windows.h>
|
||||
#include <crtdbg.h>
|
||||
|
||||
|
Reference in New Issue
Block a user