From: Guido van Rossum Date: Mon, 7 Dec 1998 14:28:47 +0000 (+0000) Subject: Py_Main() must be DL_EXPORT too. X-Git-Tag: v1.5.2b1~112 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9c1201fe39c21ecc238daea82460e0ae85ce11f3;p=python Py_Main() must be DL_EXPORT too. --- diff --git a/Modules/main.c b/Modules/main.c index 757aa77afb..36b2be9630 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 e1a5d29475..d04d1dc321 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)