Skip to content

Commit 6119c2b

Browse files
committed
Remove forward declaration of Py_Buffer
1 parent 98a4ee5 commit 6119c2b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Include/cpython/object.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
# error "this header file must not be included directly"
33
#endif
44

5+
#include "buffer.h" // for Py_buffer, included after PyObject has been defined
6+
57
PyAPI_FUNC(void) _Py_NewReference(PyObject *op);
68

79
#ifdef Py_TRACE_REFS
@@ -45,8 +47,6 @@ typedef struct _Py_Identifier {
4547
#define _Py_static_string(varname, value) static _Py_Identifier varname = _Py_static_string_init(value)
4648
#define _Py_IDENTIFIER(varname) _Py_static_string(PyId_##varname, #varname)
4749

48-
/* Py_buffer is defined in buffer.h */
49-
typedef struct bufferinfo Py_buffer;
5050
typedef int (*getbufferproc)(PyObject *, Py_buffer *, int);
5151
typedef void (*releasebufferproc)(PyObject *, Py_buffer *);
5252

0 commit comments

Comments
 (0)