1
0
mirror of https://gitlab.gnome.org/GNOME/libxslt synced 2025-07-05 23:01:12 +03:00

python: Don't use removed libxml2 macro

This commit is contained in:
Nick Wellnhofer
2025-03-09 19:36:49 +01:00
parent 09012e97f5
commit 1ca27c0d5b

View File

@ -29,13 +29,6 @@ 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>
@ -122,9 +115,8 @@ libxml_PyFileGet(PyObject *f) {
if (hntdll == NULL)
return(NULL);
XML_IGNORE_FPTR_CAST_WARNINGS
NtQueryInformationFile = (t_NtQueryInformationFile)GetProcAddress(hntdll, "NtQueryInformationFile");
XML_POP_WARNINGS
NtQueryInformationFile = (t_NtQueryInformationFile) (void (*)(void))
GetProcAddress(hntdll, "NtQueryInformationFile");
if (NtQueryInformationFile != NULL &&
(NtQueryInformationFile((HANDLE)w_fh,