Teach Windows build about the _weakref module.
This commit is contained in:
parent
2492a20579
commit
747d5b63db
|
@ -728,7 +728,7 @@ weakref_functions[] = {
|
|||
};
|
||||
|
||||
|
||||
void
|
||||
DL_EXPORT(void)
|
||||
init_weakref(void)
|
||||
{
|
||||
PyObject *m;
|
||||
|
|
|
@ -43,6 +43,7 @@ extern void init_locale(void);
|
|||
#endif
|
||||
extern void init_codecs(void);
|
||||
extern void initxreadlines(void);
|
||||
extern void init_weakref(void);
|
||||
|
||||
/* XXX tim: what's the purpose of ADDMODULE MARKER? */
|
||||
/* -- ADDMODULE MARKER 1 -- */
|
||||
|
@ -95,6 +96,7 @@ struct _inittab _PyImport_Inittab[] = {
|
|||
|
||||
{"_codecs", init_codecs},
|
||||
{"xreadlines", initxreadlines},
|
||||
{"_weakref", init_weakref},
|
||||
|
||||
/* XXX tim: what's the purpose of ADDMODULE MARKER? */
|
||||
/* -- ADDMODULE MARKER 2 -- */
|
||||
|
|
|
@ -195,6 +195,21 @@ SOURCE=..\Modules\_localemodule.c
|
|||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\Modules\_weakref.c
|
||||
|
||||
!IF "$(CFG)" == "pythoncore - Win32 Release"
|
||||
|
||||
!ELSEIF "$(CFG)" == "pythoncore - Win32 Debug"
|
||||
|
||||
!ELSEIF "$(CFG)" == "pythoncore - Win32 Alpha Debug"
|
||||
|
||||
!ELSEIF "$(CFG)" == "pythoncore - Win32 Alpha Release"
|
||||
|
||||
!ENDIF
|
||||
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\Objects\abstract.c
|
||||
|
||||
!IF "$(CFG)" == "pythoncore - Win32 Release"
|
||||
|
|
Loading…
Reference in New Issue