summaryrefslogtreecommitdiffstats
path: root/Include/structseq.h
diff options
context:
space:
mode:
authorPablo Galindo <Pablogsal@gmail.com>2021-05-01 01:21:19 (GMT)
committerGitHub <noreply@github.com>2021-05-01 01:21:19 (GMT)
commit558df9010915c8fe94f4d7f842e7c5aabbb06b14 (patch)
treebf0a029773e0ab1e563490d5f4560554f277c1f9 /Include/structseq.h
parent251ffa9d2b16b091046720628deb6a7906c35d29 (diff)
downloadcpython-558df9010915c8fe94f4d7f842e7c5aabbb06b14.zip
cpython-558df9010915c8fe94f4d7f842e7c5aabbb06b14.tar.gz
cpython-558df9010915c8fe94f4d7f842e7c5aabbb06b14.tar.bz2
bpo-43916: Export the _PyStructSequence_InitType to fix build errors in the curses module (GH-25768)
Diffstat (limited to 'Include/structseq.h')
-rw-r--r--Include/structseq.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/Include/structseq.h b/Include/structseq.h
index af3af41..890e031 100644
--- a/Include/structseq.h
+++ b/Include/structseq.h
@@ -27,12 +27,10 @@ PyAPI_FUNC(void) PyStructSequence_InitType(PyTypeObject *type,
PyAPI_FUNC(int) PyStructSequence_InitType2(PyTypeObject *type,
PyStructSequence_Desc *desc);
#endif
-#ifdef Py_BUILD_CORE
-extern int _PyStructSequence_InitType(
+PyAPI_FUNC(int) _PyStructSequence_InitType(
PyTypeObject *type,
PyStructSequence_Desc *desc,
unsigned long tp_flags);
-#endif
PyAPI_FUNC(PyTypeObject*) PyStructSequence_NewType(PyStructSequence_Desc *desc);
PyAPI_FUNC(PyObject *) PyStructSequence_New(PyTypeObject* type);