summaryrefslogtreecommitdiffstats
path: root/Tools
diff options
context:
space:
mode:
Diffstat (limited to 'Tools')
-rw-r--r--Tools/freeze/makefreeze.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/Tools/freeze/makefreeze.py b/Tools/freeze/makefreeze.py
index 4a3da99..f660664 100644
--- a/Tools/freeze/makefreeze.py
+++ b/Tools/freeze/makefreeze.py
@@ -4,15 +4,15 @@ import marshal
# Write a file containing frozen code for the modules in the dictionary.
header = """
-struct frozen {
- char *name;
- unsigned char *code;
- int size;
-} frozen_modules[] = {
+#include "Python.h"
+
+static struct _frozen _PyImport_FrozenModules[] = {
"""
trailer = """\
{0, 0, 0} /* sentinel */
};
+
+struct _frozen *PyImport_FrozenModules = _PyImport_FrozenModules;
"""
def makefreeze(outfp, dict):