diff options
author | Victor Stinner <vstinner@python.org> | 2022-02-22 22:11:48 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-22 22:11:48 (GMT) |
commit | 66b3cd7063322a9f5c922a97bbd06fdb98309999 (patch) | |
tree | 47e0543c2349afa7e57b6d167a7763828a714577 /Makefile.pre.in | |
parent | b899126094731bc49fecb61f2c1b7557d74ca839 (diff) | |
download | cpython-66b3cd7063322a9f5c922a97bbd06fdb98309999.zip cpython-66b3cd7063322a9f5c922a97bbd06fdb98309999.tar.gz cpython-66b3cd7063322a9f5c922a97bbd06fdb98309999.tar.bz2 |
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 'Makefile.pre.in')
-rw-r--r-- | Makefile.pre.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile.pre.in b/Makefile.pre.in index 2464bbd..2a3e0fb 100644 --- a/Makefile.pre.in +++ b/Makefile.pre.in @@ -1439,7 +1439,6 @@ PYTHON_HEADERS= \ $(srcdir)/Include/abstract.h \ $(srcdir)/Include/bltinmodule.h \ $(srcdir)/Include/boolobject.h \ - $(srcdir)/Include/buffer.h \ $(srcdir)/Include/bytearrayobject.h \ $(srcdir)/Include/bytesobject.h \ $(srcdir)/Include/ceval.h \ @@ -1472,6 +1471,7 @@ PYTHON_HEADERS= \ $(srcdir)/Include/osdefs.h \ $(srcdir)/Include/osmodule.h \ $(srcdir)/Include/patchlevel.h \ + $(srcdir)/Include/pybuffer.h \ $(srcdir)/Include/pycapsule.h \ $(srcdir)/Include/pydtrace.h \ $(srcdir)/Include/pyerrors.h \ |