summaryrefslogtreecommitdiffstats
path: root/Include/Python.h
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2022-02-24 16:07:12 (GMT)
committerGitHub <noreply@github.com>2022-02-24 16:07:12 (GMT)
commitec091bd47e2f968b0d1631b9a8104283a7beeb1b (patch)
tree7ca12e5891f3965a971da6d19098687f513839f7 /Include/Python.h
parenta52d2528a405c1e2bfeb6470cb3313a5338dc45f (diff)
downloadcpython-ec091bd47e2f968b0d1631b9a8104283a7beeb1b.zip
cpython-ec091bd47e2f968b0d1631b9a8104283a7beeb1b.tar.gz
cpython-ec091bd47e2f968b0d1631b9a8104283a7beeb1b.tar.bz2
bpo-45459: Add pytypedefs.h header file (GH-31527)
Move forward declarations of Python C API types to a new pytypedefs.h header file to solve interdependency issues between header files. pytypedefs.h contains forward declarations of the following types: * PyCodeObject * PyFrameObject * PyGetSetDef * PyInterpreterState * PyLongObject * PyMemberDef * PyMethodDef * PyModuleDef * PyObject * PyThreadState * PyTypeObject
Diffstat (limited to 'Include/Python.h')
-rw-r--r--Include/Python.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Include/Python.h b/Include/Python.h
index 5bc8cc6..4dc2edb 100644
--- a/Include/Python.h
+++ b/Include/Python.h
@@ -39,6 +39,7 @@
#include "pymacro.h"
#include "pymath.h"
#include "pymem.h"
+#include "pytypedefs.h"
#include "pybuffer.h"
#include "object.h"
#include "objimpl.h"