gh-115882: Reference Unknwn.h for ctypes on Windows (GH-115350)

This allows the module to be compiled with WIN32_LEAN_AND_MEAN enabled
This commit is contained in:
Yuriy Chernyshov 2024-02-26 18:21:55 +01:00 committed by GitHub
parent c0fdfba7ff
commit 96c10c6485
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 0 deletions

View File

@ -0,0 +1 @@
Fix building ctypes module with -DWIN32_LEAN_AND_MEAN defined

View File

@ -32,6 +32,10 @@
#endif
#endif
#ifdef MS_WIN32
#include <Unknwn.h> // for IUnknown interface
#endif
typedef struct {
PyTypeObject *DictRemover_Type;
PyTypeObject *PyCArg_Type;