summaryrefslogtreecommitdiffstats
path: root/Tools/freeze/winmakemakefile.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1998-03-04 18:12:39 (GMT)
committerGuido van Rossum <guido@python.org>1998-03-04 18:12:39 (GMT)
commitf888350dec14dae1879b1dd0d85616440be9af03 (patch)
tree34c74861cff6372799f25476badfc55b593f6883 /Tools/freeze/winmakemakefile.py
parentc7e76c885b2ad2796fd12ede9904d250d28d28fb (diff)
downloadcpython-f888350dec14dae1879b1dd0d85616440be9af03.zip
cpython-f888350dec14dae1879b1dd0d85616440be9af03.tar.gz
cpython-f888350dec14dae1879b1dd0d85616440be9af03.tar.bz2
Untested changes to make the '-s windows' option
work on Windows.
Diffstat (limited to 'Tools/freeze/winmakemakefile.py')
-rw-r--r--Tools/freeze/winmakemakefile.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/Tools/freeze/winmakemakefile.py b/Tools/freeze/winmakemakefile.py
index 453bbff..972f400 100644
--- a/Tools/freeze/winmakemakefile.py
+++ b/Tools/freeze/winmakemakefile.py
@@ -1,5 +1,19 @@
import sys, os, string
+WINMAINTEMPLATE = """
+#include <windows.h>
+
+int WINAPI WinMain(
+ HINSTANCE hInstance, // handle to current instance
+ HINSTANCE hPrevInstance, // handle to previous instance
+ LPSTR lpCmdLine, // pointer to command line
+ int nCmdShow // show state of window
+ )
+{
+ return main(__argc, __argv);
+}
+"""
+
def makemakefile(outfp, vars, files, target):
save = sys.stdout
try: