From cfd76a202b6af2d989996727f7433d79c0c4b040 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Tue, 2 Nov 1999 15:44:40 +0000 Subject: Sjoerd Mullender: Added some declarations to shut up compiler. --- Tools/freeze/checkextensions_win32.py | 2 +- Tools/freeze/makefreeze.py | 1 + Tools/freeze/winmakemakefile.py | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) 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); } -- cgit v0.12