File tree 3 files changed +10
-3
lines changed
3 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -887,7 +887,7 @@ def build_extensions(self):
887
887
else :
888
888
self ._remove_extension ("PIL._webp" )
889
889
890
- tk_libs = ["psapi" ] if sys .platform == "win32" else []
890
+ tk_libs = ["psapi" ] if ( sys .platform == "win32" or sys . platform == "cygwin" ) else []
891
891
self ._update_extension ("PIL._imagingtk" , tk_libs )
892
892
893
893
build_ext .build_extensions (self )
Original file line number Diff line number Diff line change @@ -219,7 +219,7 @@ TkImaging_Init(Tcl_Interp *interp) {
219
219
220
220
#define TKINTER_FINDER "PIL._tkinter_finder"
221
221
222
- #if defined(_WIN32 ) || defined(__WIN32__ ) || defined(WIN32 )
222
+ #if defined(_WIN32 ) || defined(__WIN32__ ) || defined(WIN32 ) || defined( __CYGWIN__ )
223
223
224
224
/*
225
225
* On Windows, we can't load the tkinter module to get the Tcl or Tk symbols,
Original file line number Diff line number Diff line change 31
31
#endif
32
32
#endif
33
33
34
- #ifdef _WIN32
34
+ #if defined( _WIN32 ) || defined( __CYGWIN__ )
35
35
36
36
#define WIN32_LEAN_AND_MEAN
37
37
#include <Windows.h>
38
38
39
+ #ifdef __CYGWIN__
40
+ #undef _WIN64
41
+ #undef _WIN32
42
+ #undef __WIN32__
43
+ #undef WIN32
44
+ #endif
45
+
39
46
#else
40
47
/* For System that are not Windows, we'll need to define these. */
41
48
You can’t perform that action at this time.
0 commit comments