summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteve Dower <steve.dower@microsoft.com>2015-05-23 21:44:37 (GMT)
committerSteve Dower <steve.dower@microsoft.com>2015-05-23 21:44:37 (GMT)
commit11d7b1423fc44d764eba7065ea5eba58ed748b21 (patch)
tree5bd16122c1460cb69ccb0e572ef819f55ca72106
parent1a90b17bce4f4d57eba3c467ef3457307f88a505 (diff)
downloadcpython-11d7b1423fc44d764eba7065ea5eba58ed748b21.zip
cpython-11d7b1423fc44d764eba7065ea5eba58ed748b21.tar.gz
cpython-11d7b1423fc44d764eba7065ea5eba58ed748b21.tar.bz2
Issue #24268: Adds PyModuleDef_Init and PyModuleDef_Type to python3.def (stable ABI)
-rw-r--r--Include/moduleobject.h2
-rw-r--r--PC/python3.def2
2 files changed, 3 insertions, 1 deletions
diff --git a/Include/moduleobject.h b/Include/moduleobject.h
index e68d144..dbbf581 100644
--- a/Include/moduleobject.h
+++ b/Include/moduleobject.h
@@ -31,7 +31,7 @@ PyAPI_FUNC(struct PyModuleDef*) PyModule_GetDef(PyObject*);
PyAPI_FUNC(void*) PyModule_GetState(PyObject*);
PyAPI_FUNC(PyObject *) PyModuleDef_Init(struct PyModuleDef*);
-PyTypeObject PyModuleDef_Type;
+PyAPI_DATA(PyTypeObject) PyModuleDef_Type;
typedef struct PyModuleDef_Base {
PyObject_HEAD
diff --git a/PC/python3.def b/PC/python3.def
index 45fda38..f016aab 100644
--- a/PC/python3.def
+++ b/PC/python3.def
@@ -330,6 +330,8 @@ EXPORTS
PyModule_GetState=python35.PyModule_GetState
PyModule_New=python35.PyModule_New
PyModule_Type=python35.PyModule_Type DATA
+ PyModuleDef_Init=python35.PyModuleDef_Init
+ PyModuleDef_Type=python35.PyModuleDef_Type DATA
PyNullImporter_Type=python35.PyNullImporter_Type DATA
PyNumber_Absolute=python35.PyNumber_Absolute
PyNumber_Add=python35.PyNumber_Add