]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-36020: Remove snprintf macro in pyerrors.h (GH-20889)
authorVictor Stinner <vstinner@python.org>
Mon, 15 Jun 2020 19:59:47 +0000 (21:59 +0200)
committerGitHub <noreply@github.com>
Mon, 15 Jun 2020 19:59:47 +0000 (21:59 +0200)
commite822e37946f27c09953bb5733acf3b07c2db690f
treed0bb8d8769be9f469aa6675fb820bc41acfd65c5
parent5f79f46612c351bde78a41c5264c42db21008868
bpo-36020: Remove snprintf macro in pyerrors.h (GH-20889)

On Windows, #include "pyerrors.h" no longer defines "snprintf" and
"vsnprintf" macros.

PyOS_snprintf() and PyOS_vsnprintf() should be used to get portable
behavior.

Replace snprintf() calls with PyOS_snprintf() and replace vsnprintf()
calls with PyOS_vsnprintf().
Include/pyerrors.h
Misc/NEWS.d/next/C API/2020-06-15-16-46-01.bpo-36020.djI6jw.rst [new file with mode: 0644]
Modules/_ctypes/callbacks.c
Modules/socketmodule.c
Parser/tokenizer.c
Python/mysnprintf.c