diff options
author | Yuriy Chernyshov <thegeorg@yandex-team.com> | 2024-02-26 17:21:55 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-26 17:21:55 (GMT) |
commit | 96c10c648565c7406d5606099dbbb937310c26dc (patch) | |
tree | 493f1d28de08c0198c0d2b6de5a6f93e507613cf /Modules/_ctypes | |
parent | c0fdfba7ff981c55ac13325e4dddaf382601b246 (diff) | |
download | cpython-96c10c648565c7406d5606099dbbb937310c26dc.zip cpython-96c10c648565c7406d5606099dbbb937310c26dc.tar.gz cpython-96c10c648565c7406d5606099dbbb937310c26dc.tar.bz2 |
gh-115882: Reference Unknwn.h for ctypes on Windows (GH-115350)
This allows the module to be compiled with WIN32_LEAN_AND_MEAN enabled
Diffstat (limited to 'Modules/_ctypes')
-rw-r--r-- | Modules/_ctypes/ctypes.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Modules/_ctypes/ctypes.h b/Modules/_ctypes/ctypes.h index 1989723..02f48a9 100644 --- a/Modules/_ctypes/ctypes.h +++ b/Modules/_ctypes/ctypes.h @@ -32,6 +32,10 @@ #endif #endif +#ifdef MS_WIN32 +#include <Unknwn.h> // for IUnknown interface +#endif + typedef struct { PyTypeObject *DictRemover_Type; PyTypeObject *PyCArg_Type; |