mirror of
https://github.com/python/cpython.git
synced 2025-10-17 12:18:23 +00:00
SF "bug" 115973: patches from Norman Vine so that shared libraries and
Tkinter work under Cygwin. Accepted on faith & reasonableness.
This commit is contained in:
parent
293b03f73f
commit
98dc065c1b
2 changed files with 6 additions and 1 deletions
|
@ -57,7 +57,7 @@ Copyright (C) 1994 Steen Lumholt.
|
||||||
#include <Menus.h>
|
#include <Menus.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(MS_WINDOWS)
|
#if !(defined(MS_WINDOWS) || defined(__CYGWIN__))
|
||||||
#define HAVE_CREATEFILEHANDLER
|
#define HAVE_CREATEFILEHANDLER
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -22,8 +22,13 @@
|
||||||
|
|
||||||
|
|
||||||
const struct filedescr _PyImport_DynLoadFiletab[] = {
|
const struct filedescr _PyImport_DynLoadFiletab[] = {
|
||||||
|
#ifdef __CYGWIN__
|
||||||
|
{".pyd", "rb", C_EXTENSION},
|
||||||
|
{".dll", "rb", C_EXTENSION},
|
||||||
|
#else
|
||||||
{".so", "rb", C_EXTENSION},
|
{".so", "rb", C_EXTENSION},
|
||||||
{"module.so", "rb", C_EXTENSION},
|
{"module.so", "rb", C_EXTENSION},
|
||||||
|
#endif
|
||||||
{0, 0}
|
{0, 0}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue