diff --git a/Modules/main.c b/Modules/main.c index 757aa77afb4..36b2be96300 100644 --- a/Modules/main.c +++ b/Modules/main.c @@ -94,7 +94,7 @@ PYTHONHOME : alternate directory (or %c).\n\ /* Main program */ -int +DL_EXPORT(int) Py_Main(argc, argv) int argc; char **argv; diff --git a/Modules/python.c b/Modules/python.c index e1a5d29475e..d04d1dc3211 100644 --- a/Modules/python.c +++ b/Modules/python.c @@ -2,7 +2,7 @@ #include "Python.h" -extern int Py_Main(); +extern DL_EXPORT(int) Py_Main(); int main(argc, argv)