Skip to content

Commit a2f6944

Browse files
committed
Add prototype for PyBytesWriter_Format
1 parent ab343af commit a2f6944

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pythoncapi_compat.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2529,6 +2529,10 @@ PyBytesWriter_WriteBytes(PyBytesWriter *writer,
25292529
return 0;
25302530
}
25312531

2532+
static inline int
2533+
PyBytesWriter_Format(PyBytesWriter *writer, const char *format, ...)
2534+
Py_GCC_ATTRIBUTE((format(printf, 2, 0)));
2535+
25322536
static inline int
25332537
PyBytesWriter_Format(PyBytesWriter *writer, const char *format, ...)
25342538
{

0 commit comments

Comments
 (0)