Skip to content

Commit 98dc065

Browse files
committed
SF "bug" 115973: patches from Norman Vine so that shared libraries and
Tkinter work under Cygwin. Accepted on faith & reasonableness.
1 parent 293b03f commit 98dc065

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

Modules/_tkinter.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ Copyright (C) 1994 Steen Lumholt.
5757
#include <Menus.h>
5858
#endif
5959

60-
#if !defined(MS_WINDOWS)
60+
#if !(defined(MS_WINDOWS) || defined(__CYGWIN__))
6161
#define HAVE_CREATEFILEHANDLER
6262
#endif
6363

Python/dynload_shlib.c

+5
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,13 @@
2222

2323

2424
const struct filedescr _PyImport_DynLoadFiletab[] = {
25+
#ifdef __CYGWIN__
26+
{".pyd", "rb", C_EXTENSION},
27+
{".dll", "rb", C_EXTENSION},
28+
#else
2529
{".so", "rb", C_EXTENSION},
2630
{"module.so", "rb", C_EXTENSION},
31+
#endif
2732
{0, 0}
2833
};
2934

0 commit comments

Comments
 (0)