From 11d7b1423fc44d764eba7065ea5eba58ed748b21 Mon Sep 17 00:00:00 2001 From: Steve Dower Date: Sat, 23 May 2015 14:44:37 -0700 Subject: [PATCH] Issue #24268: Adds PyModuleDef_Init and PyModuleDef_Type to python3.def (stable ABI) --- Include/moduleobject.h | 2 +- PC/python3.def | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Include/moduleobject.h b/Include/moduleobject.h index e68d144c78f..dbbf581f97a 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 45fda3861e8..f016aab6cf4 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