pr115350-win-lean-and-mean.patch 666 B

123456789101112131415161718192021222324
  1. From 5114e70b87cda3644f689026265797ec68a345eb Mon Sep 17 00:00:00 2001
  2. From: Yuriy Chernyshov <thegeorg@yandex-team.com>
  3. Date: Mon, 12 Feb 2024 16:52:32 +0100
  4. Subject: [PATCH 1/2] Add missing #include <Unknwn.h> on Windows
  5. ---
  6. Modules/_ctypes/ctypes.h | 4 ++++
  7. 1 file changed, 4 insertions(+)
  8. diff --git a/Modules/_ctypes/ctypes.h b/Modules/_ctypes/ctypes.h
  9. index 1989723f6f3dbb..02f48a9ed55843 100644
  10. --- a/Modules/_ctypes/ctypes.h
  11. +++ b/Modules/_ctypes/ctypes.h
  12. @@ -32,6 +32,10 @@
  13. #endif
  14. #endif
  15. +#ifdef MS_WIN32
  16. +#include <Unknwn.h> // for IUnknown interface
  17. +#endif
  18. +
  19. typedef struct {
  20. PyTypeObject *DictRemover_Type;
  21. PyTypeObject *PyCArg_Type;