Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2bea21b

Browse files
committed
BLD: Define an error function on Cygwin.
This function is defined on Windows, not Cygwin. Should maybe request that upstream.
1 parent fa24348 commit 2bea21b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/_tkagg.cpp

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

2932
#ifdef WIN32_DLL

0 commit comments

Comments
 (0)