Skip to content

Commit 4ee298b

Browse files
authored
Merge pull request #23488 from meeseeksmachine/auto-backport-of-pr-23066-on-v3.5.x
Backport PR #23066 on branch v3.5.x (BLD: Define PyErr_SetFromWindowsErr on Cygwin.)
2 parents 7c80fe6 + a372bb3 commit 4ee298b

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)