summaryrefslogtreecommitdiffstats
path: root/Tools/freeze
diff options
context:
space:
mode:
Diffstat (limited to 'Tools/freeze')
-rw-r--r--Tools/freeze/checkextensions_win32.py2
-rw-r--r--Tools/freeze/makefreeze.py1
-rw-r--r--Tools/freeze/winmakemakefile.py1
3 files changed, 3 insertions, 1 deletions
diff --git a/Tools/freeze/checkextensions_win32.py b/Tools/freeze/checkextensions_win32.py
index ff86ab0..e3efe05 100644
--- a/Tools/freeze/checkextensions_win32.py
+++ b/Tools/freeze/checkextensions_win32.py
@@ -177,7 +177,7 @@ ext_tab_footer = """\
"""
ext_src_footer = """\
-extern int PyImport_ExtendInittab(struct _inittab *newtab);
+extern DL_IMPORT(int) PyImport_ExtendInittab(struct _inittab *newtab);
int PyInitFrozenExtensions()
{
diff --git a/Tools/freeze/makefreeze.py b/Tools/freeze/makefreeze.py
index 4ea1905..1958f2e 100644
--- a/Tools/freeze/makefreeze.py
+++ b/Tools/freeze/makefreeze.py
@@ -22,6 +22,7 @@ main(argc, argv)
int argc;
char **argv;
{
+ extern int Py_FrozenMain Py_PROTO((int, char **));
""" + ((not __debug__ and """
Py_OptimizeFlag++;
""") or "") + """
diff --git a/Tools/freeze/winmakemakefile.py b/Tools/freeze/winmakemakefile.py
index 62ac6ab..320504b 100644
--- a/Tools/freeze/winmakemakefile.py
+++ b/Tools/freeze/winmakemakefile.py
@@ -11,6 +11,7 @@ int WINAPI WinMain(
int nCmdShow // show state of window
)
{
+ extern int Py_FrozenMain(int, char **);
PyImport_FrozenModules = _PyImport_FrozenModules;
return Py_FrozenMain(__argc, __argv);
}