Skip to content

Commit 11d7b14

Browse files
committed
Issue python#24268: Adds PyModuleDef_Init and PyModuleDef_Type to python3.def (stable ABI)
1 parent 1a90b17 commit 11d7b14

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Include/moduleobject.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ PyAPI_FUNC(struct PyModuleDef*) PyModule_GetDef(PyObject*);
3131
PyAPI_FUNC(void*) PyModule_GetState(PyObject*);
3232

3333
PyAPI_FUNC(PyObject *) PyModuleDef_Init(struct PyModuleDef*);
34-
PyTypeObject PyModuleDef_Type;
34+
PyAPI_DATA(PyTypeObject) PyModuleDef_Type;
3535

3636
typedef struct PyModuleDef_Base {
3737
PyObject_HEAD

PC/python3.def

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -330,6 +330,8 @@ EXPORTS
330330
PyModule_GetState=python35.PyModule_GetState
331331
PyModule_New=python35.PyModule_New
332332
PyModule_Type=python35.PyModule_Type DATA
333+
PyModuleDef_Init=python35.PyModuleDef_Init
334+
PyModuleDef_Type=python35.PyModuleDef_Type DATA
333335
PyNullImporter_Type=python35.PyNullImporter_Type DATA
334336
PyNumber_Absolute=python35.PyNumber_Absolute
335337
PyNumber_Add=python35.PyNumber_Add

0 commit comments

Comments
 (0)