diff options
| author | Victor Stinner <vstinner@python.org> | 2022-02-22 23:11:48 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-02-22 23:11:48 +0100 |
| commit | 66b3cd7063322a9f5c922a97bbd06fdb98309999 (patch) | |
| tree | 47e0543c2349afa7e57b6d167a7763828a714577 /Include/Python.h | |
| parent | b899126094731bc49fecb61f2c1b7557d74ca839 (diff) | |
| download | cpython-git-66b3cd7063322a9f5c922a97bbd06fdb98309999.tar.gz | |
bpo-45459: Rename buffer.h to pybuffer.h (#31201)
Rename Include/buffer.h header file to Include/pybuffer.h to avoid
conflicts with projects having an existing "buffer.h" header file.
* Incude pybuffer.h before object.h in Python.h.
* Remove #include "buffer.h" from Include/cpython/object.h.
* Add a forward declaration of the PyObject type in pybuffer.h to fix
an inter-dependency issue.
Diffstat (limited to 'Include/Python.h')
| -rw-r--r-- | Include/Python.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Include/Python.h b/Include/Python.h index 5416b04e4b..5bc8cc656a 100644 --- a/Include/Python.h +++ b/Include/Python.h @@ -39,6 +39,7 @@ #include "pymacro.h" #include "pymath.h" #include "pymem.h" +#include "pybuffer.h" #include "object.h" #include "objimpl.h" #include "typeslots.h" @@ -50,7 +51,6 @@ #include "longobject.h" #include "cpython/longintrepr.h" #include "boolobject.h" -#include "buffer.h" #include "floatobject.h" #include "complexobject.h" #include "rangeobject.h" |
