summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2020-06-15 19:59:47 (GMT)
committerGitHub <noreply@github.com>2020-06-15 19:59:47 (GMT)
commite822e37946f27c09953bb5733acf3b07c2db690f (patch)
treed0bb8d8769be9f469aa6675fb820bc41acfd65c5 /Misc
parent5f79f46612c351bde78a41c5264c42db21008868 (diff)
downloadcpython-e822e37946f27c09953bb5733acf3b07c2db690f.zip
cpython-e822e37946f27c09953bb5733acf3b07c2db690f.tar.gz
cpython-e822e37946f27c09953bb5733acf3b07c2db690f.tar.bz2
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().
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS.d/next/C API/2020-06-15-16-46-01.bpo-36020.djI6jw.rst2
1 files changed, 2 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/C API/2020-06-15-16-46-01.bpo-36020.djI6jw.rst b/Misc/NEWS.d/next/C API/2020-06-15-16-46-01.bpo-36020.djI6jw.rst
new file mode 100644
index 0000000..1f91dce
--- /dev/null
+++ b/Misc/NEWS.d/next/C API/2020-06-15-16-46-01.bpo-36020.djI6jw.rst
@@ -0,0 +1,2 @@
+On Windows, ``#include "pyerrors.h"`` no longer defines ``snprintf`` and
+``vsnprintf`` macros.