Skip to content

Commit a372bb3

Browse files
anntzermeeseeksmachine
authored andcommitted
Backport PR #23066: BLD: Define PyErr_SetFromWindowsErr on Cygwin.
1 parent 7c80fe6 commit a372bb3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/_tkagg.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@
2424
* also.
2525
*/
2626
#define WIN32_DLL
27+
static inline PyObject *PyErr_SetFromWindowsErr(int ierr) {
28+
PyErr_SetString(PyExc_OSError, "Call to EnumProcessModules failed");
29+
return NULL;
30+
}
2731
#endif
2832

2933
#ifdef WIN32_DLL

0 commit comments

Comments
 (0)
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