diff options
author | Tim Peters <tim.peters@gmail.com> | 2000-10-05 19:24:26 (GMT) |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2000-10-05 19:24:26 (GMT) |
commit | 98dc065c1b96705d42c4853fdb28ff5ae64093b9 (patch) | |
tree | ea19cd515600aeffccdeadb665a2076a6673cb52 | |
parent | 293b03f73f5ad48719a0f07fb45857182dfb1d51 (diff) | |
download | cpython-98dc065c1b96705d42c4853fdb28ff5ae64093b9.zip cpython-98dc065c1b96705d42c4853fdb28ff5ae64093b9.tar.gz cpython-98dc065c1b96705d42c4853fdb28ff5ae64093b9.tar.bz2 |
SF "bug" 115973: patches from Norman Vine so that shared libraries and
Tkinter work under Cygwin. Accepted on faith & reasonableness.
-rw-r--r-- | Modules/_tkinter.c | 2 | ||||
-rw-r--r-- | Python/dynload_shlib.c | 5 |
2 files changed, 6 insertions, 1 deletions
diff --git a/Modules/_tkinter.c b/Modules/_tkinter.c index 34360fe..0a3b74b 100644 --- a/Modules/_tkinter.c +++ b/Modules/_tkinter.c @@ -57,7 +57,7 @@ Copyright (C) 1994 Steen Lumholt. #include <Menus.h> #endif -#if !defined(MS_WINDOWS) +#if !(defined(MS_WINDOWS) || defined(__CYGWIN__)) #define HAVE_CREATEFILEHANDLER #endif diff --git a/Python/dynload_shlib.c b/Python/dynload_shlib.c index 16f15d9..2b0e74e 100644 --- a/Python/dynload_shlib.c +++ b/Python/dynload_shlib.c @@ -22,8 +22,13 @@ const struct filedescr _PyImport_DynLoadFiletab[] = { +#ifdef __CYGWIN__ + {".pyd", "rb", C_EXTENSION}, + {".dll", "rb", C_EXTENSION}, +#else {".so", "rb", C_EXTENSION}, {"module.so", "rb", C_EXTENSION}, +#endif {0, 0} }; |