mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
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
2 changed files with 5 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue