diff options
author | Guido van Rossum <guido@python.org> | 1999-11-02 15:44:40 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1999-11-02 15:44:40 (GMT) |
commit | cfd76a202b6af2d989996727f7433d79c0c4b040 (patch) | |
tree | 0c07be4fe3aec0e7ecd3e535a1f1b144e585909f | |
parent | f618a48d117fe98dce05253eded6caeb9a849114 (diff) | |
download | cpython-cfd76a202b6af2d989996727f7433d79c0c4b040.zip cpython-cfd76a202b6af2d989996727f7433d79c0c4b040.tar.gz cpython-cfd76a202b6af2d989996727f7433d79c0c4b040.tar.bz2 |
Sjoerd Mullender:
Added some declarations to shut up compiler.
-rw-r--r-- | Tools/freeze/checkextensions_win32.py | 2 | ||||
-rw-r--r-- | Tools/freeze/makefreeze.py | 1 | ||||
-rw-r--r-- | Tools/freeze/winmakemakefile.py | 1 |
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); } |