From 9c1201fe39c21ecc238daea82460e0ae85ce11f3 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Mon, 7 Dec 1998 14:28:47 +0000 Subject: [PATCH] Py_Main() must be DL_EXPORT too. --- Modules/main.c | 2 +- Modules/python.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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)