summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2023-10-31 20:53:57 (GMT)
committerGitHub <noreply@github.com>2023-10-31 20:53:57 (GMT)
commitfaa5f6053d7334a3ecc513c64947ac026439c03a (patch)
treebb1613a4a37b8f2c4e6ad977200f50479f8552f6 /Doc
parentc42347d025b29e993a12925a3ddf58c0c9bb7f7b (diff)
downloadcpython-faa5f6053d7334a3ecc513c64947ac026439c03a.zip
cpython-faa5f6053d7334a3ecc513c64947ac026439c03a.tar.gz
cpython-faa5f6053d7334a3ecc513c64947ac026439c03a.tar.bz2
gh-108765: Python.h no longer includes <stddef.h> on Windows (#111563)
In practice, only Windows is impacted, because the HAVE_STDDEF_H macro was only defined on Windows.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/whatsnew/3.13.rst8
1 files changed, 8 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.13.rst b/Doc/whatsnew/3.13.rst
index 3a2df4f..1977902 100644
--- a/Doc/whatsnew/3.13.rst
+++ b/Doc/whatsnew/3.13.rst
@@ -1186,6 +1186,14 @@ Porting to Python 3.13
``PyUnicode_AsUTF8AndSize(unicode, NULL)`` can be used instead.
(Contributed by Victor Stinner in :gh:`111089`.)
+* On Windows, ``Python.h`` no longer includes the ``<stddef.h>`` standard
+ header file. If needed, it should now be included explicitly. For example, it
+ provides ``offsetof()`` function, and ``size_t`` and ``ptrdiff_t`` types.
+ Including ``<stddef.h>`` explicitly was already needed by all other
+ platforms, the ``HAVE_STDDEF_H`` macro is only defined on Windows.
+ (Contributed by Victor Stinner in :gh:`108765`.)
+
+
Deprecated
----------