From a372bb30b18db061edaaab53c7229d75e623687f Mon Sep 17 00:00:00 2001 From: Antony Lee Date: Tue, 26 Jul 2022 08:38:29 +0200 Subject: [PATCH] Backport PR #23066: BLD: Define PyErr_SetFromWindowsErr on Cygwin. --- src/_tkagg.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/_tkagg.cpp b/src/_tkagg.cpp index a2c99b50486b..d31700c3ee65 100644 --- a/src/_tkagg.cpp +++ b/src/_tkagg.cpp @@ -24,6 +24,10 @@ * also. */ #define WIN32_DLL +static inline PyObject *PyErr_SetFromWindowsErr(int ierr) { + PyErr_SetString(PyExc_OSError, "Call to EnumProcessModules failed"); + return NULL; +} #endif #ifdef WIN32_DLL pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy