Skip to content
Prev Previous commit
Next Next commit
Hide typo alias with limited API
  • Loading branch information
tiran committed Feb 2, 2022
commit 1440b943f8fb28a1c9cc72a3f08a1a9a1e1de580
4 changes: 4 additions & 0 deletions Include/buffer.h
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,12 @@ PyAPI_FUNC(void) PyBuffer_Release(Py_buffer *view);
/* Flags for getting buffers */
#define PyBUF_SIMPLE 0
#define PyBUF_WRITABLE 0x0001

#ifndef Py_LIMITED_API
/* we used to include an E, backwards compatible alias */
#define PyBUF_WRITEABLE PyBUF_WRITABLE
#endif

#define PyBUF_FORMAT 0x0004
#define PyBUF_ND 0x0008
#define PyBUF_STRIDES (0x0010 | PyBUF_ND)
Expand Down