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

Skip to content

Commit 747d5b6

Browse files
committed
Teach Windows build about the _weakref module.
1 parent 2492a20 commit 747d5b6

3 files changed

Lines changed: 18 additions & 1 deletion

File tree

Modules/_weakref.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -728,7 +728,7 @@ weakref_functions[] = {
728728
};
729729

730730

731-
void
731+
DL_EXPORT(void)
732732
init_weakref(void)
733733
{
734734
PyObject *m;

PC/config.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ extern void init_locale(void);
4343
#endif
4444
extern void init_codecs(void);
4545
extern void initxreadlines(void);
46+
extern void init_weakref(void);
4647

4748
/* XXX tim: what's the purpose of ADDMODULE MARKER? */
4849
/* -- ADDMODULE MARKER 1 -- */
@@ -95,6 +96,7 @@ struct _inittab _PyImport_Inittab[] = {
9596

9697
{"_codecs", init_codecs},
9798
{"xreadlines", initxreadlines},
99+
{"_weakref", init_weakref},
98100

99101
/* XXX tim: what's the purpose of ADDMODULE MARKER? */
100102
/* -- ADDMODULE MARKER 2 -- */

PCbuild/pythoncore.dsp

Lines changed: 15 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)