summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorJason Tishler <jason@tishler.net>2003-09-04 11:59:50 (GMT)
committerJason Tishler <jason@tishler.net>2003-09-04 11:59:50 (GMT)
commit6bc06eca70f4c41f01bca5f39d54ff5f71a39092 (patch)
tree90e451559ee87d6762cebdf789eba30c0c4fa660 /Python
parent3076559ea5d36d9795edc32e2fae7949b875d7ef (diff)
downloadcpython-6bc06eca70f4c41f01bca5f39d54ff5f71a39092.zip
cpython-6bc06eca70f4c41f01bca5f39d54ff5f71a39092.tar.gz
cpython-6bc06eca70f4c41f01bca5f39d54ff5f71a39092.tar.bz2
Bug #794140: cygwin builds do not embed
The embed2.diff patch solves the user's problem by exporting the missing symbols from the Python core so Python can be embedded in another Cygwin application (well, at lest vim).
Diffstat (limited to 'Python')
-rw-r--r--Python/import.c2
-rw-r--r--Python/marshal.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/Python/import.c b/Python/import.c
index 858f9e5..abe3a19 100644
--- a/Python/import.c
+++ b/Python/import.c
@@ -2841,7 +2841,7 @@ setint(PyObject *d, char *name, int value)
return err;
}
-void
+PyMODINIT_FUNC
initimp(void)
{
PyObject *m, *d;
diff --git a/Python/marshal.c b/Python/marshal.c
index 5aaa382..0bb7b4f 100644
--- a/Python/marshal.c
+++ b/Python/marshal.c
@@ -875,7 +875,7 @@ static PyMethodDef marshal_methods[] = {
{NULL, NULL} /* sentinel */
};
-void
+PyMODINIT_FUNC
PyMarshal_Init(void)
{
(void) Py_InitModule("marshal", marshal_methods);