Skip to content

Commit a42a137

Browse files
author
barry.warsaw
committed
Enable the building of the _types module on Windows.
Note that this has only been tested for VS 2003 since that's all I have. git-svn-id: http://svn.python.org/projects/python/trunk@50885 6015fed2-1504-0410-9fe1-9d1591cc4771
1 parent 44895e5 commit a42a137

2 files changed

Lines changed: 12 additions & 6 deletions

File tree

PC/config.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ extern void init_codecs_tw(void);
6767
extern void init_subprocess(void);
6868
extern void init_lsprof(void);
6969
extern void init_ast(void);
70+
extern void init_types(void);
7071

7172
/* tools/freeze/makeconfig.py marker for additional "extern" */
7273
/* -- ADDMODULE MARKER 1 -- */
@@ -161,6 +162,8 @@ struct _inittab _PyImport_Inittab[] = {
161162
{"__builtin__", NULL},
162163
{"sys", NULL},
163164
{"exceptions", NULL},
165+
166+
{"_types", init_types},
164167

165168
/* Sentinel */
166169
{0, 0}

PCbuild/pythoncore.vcproj

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -343,9 +343,6 @@
343343
<File
344344
RelativePath="..\Modules\_bisectmodule.c">
345345
</File>
346-
<File
347-
RelativePath="..\Modules\_struct.c">
348-
</File>
349346
<File
350347
RelativePath="..\Modules\cjkcodecs\_codecs_cn.c">
351348
</File>
@@ -370,6 +367,9 @@
370367
<File
371368
RelativePath="..\Modules\_csv.c">
372369
</File>
370+
<File
371+
RelativePath="..\Modules\_functoolsmodule.c">
372+
</File>
373373
<File
374374
RelativePath="..\Modules\_heapqmodule.c">
375375
</File>
@@ -388,9 +388,15 @@
388388
<File
389389
RelativePath="..\Modules\_sre.c">
390390
</File>
391+
<File
392+
RelativePath="..\Modules\_struct.c">
393+
</File>
391394
<File
392395
RelativePath="..\Pc\_subprocess.c">
393396
</File>
397+
<File
398+
RelativePath="..\Modules\_typesmodule.c">
399+
</File>
394400
<File
395401
RelativePath="..\Modules\_weakref.c">
396402
</File>
@@ -514,9 +520,6 @@
514520
<File
515521
RelativePath="..\Objects\funcobject.c">
516522
</File>
517-
<File
518-
RelativePath="..\Modules\_functoolsmodule.c">
519-
</File>
520523
<File
521524
RelativePath="..\Python\future.c">
522525
</File>

0 commit comments

Comments
 (0)