Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 71135ac

Browse files
committed
Add _opcode to Windows build env
1 parent d27b455 commit 71135ac

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

PC/config.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ extern PyObject* PyInit_atexit(void);
6666
extern PyObject* _PyWarnings_Init(void);
6767
extern PyObject* PyInit__string(void);
6868
extern PyObject* PyInit__stat(void);
69+
extern PyObject* PyInit__opcode(void);
6970

7071
/* tools/freeze/makeconfig.py marker for additional "extern" */
7172
/* -- ADDMODULE MARKER 1 -- */
@@ -158,6 +159,7 @@ struct _inittab _PyImport_Inittab[] = {
158159
{"_pickle", PyInit__pickle},
159160
{"atexit", PyInit_atexit},
160161
{"_stat", PyInit__stat},
162+
{"_opcode", PyInit__opcode},
161163

162164
/* Sentinel */
163165
{0, 0}

PCbuild/pythoncore.vcxproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -524,6 +524,7 @@
524524
<ClCompile Include="..\Modules\mathmodule.c" />
525525
<ClCompile Include="..\Modules\md5module.c" />
526526
<ClCompile Include="..\Modules\mmapmodule.c" />
527+
<ClCompile Include="..\Modules\_opcode.c" />
527528
<ClCompile Include="..\Modules\_operator.c" />
528529
<ClCompile Include="..\Modules\parsermodule.c" />
529530
<ClCompile Include="..\Modules\posixmodule.c" />

0 commit comments

Comments
 (0)