mirror of https://github.com/python/cpython
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:
parent
c0fdfba7ff
commit
96c10c6485
|
@ -0,0 +1 @@
|
|||
Fix building ctypes module with -DWIN32_LEAN_AND_MEAN defined
|
|
@ -32,6 +32,10 @@
|
|||
#endif
|
||||
#endif
|
||||
|
||||
#ifdef MS_WIN32
|
||||
#include <Unknwn.h> // for IUnknown interface
|
||||
#endif
|
||||
|
||||
typedef struct {
|
||||
PyTypeObject *DictRemover_Type;
|
||||
PyTypeObject *PyCArg_Type;
|
||||
|
|
Loading…
Reference in New Issue