Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions Doc/whatsnew/3.11.rst
Original file line number Diff line number Diff line change
Expand Up @@ -552,6 +552,10 @@ Porting to Python 3.11

(Contributed by Victor Stinner in :issue:`39573`.)

* The ``<Python.h>`` header file no longer includes ``<stdlib.h>``. C
extensions using ``<stdlib.h>`` must now include it explicitly.
(Contributed by Victor Stinner in :issue:`45434`.)

Deprecated
----------

Expand Down
1 change: 0 additions & 1 deletion Include/Python.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
#ifdef HAVE_ERRNO_H
# include <errno.h> // errno
#endif
#include <stdlib.h>
#ifndef MS_WINDOWS
# include <unistd.h>
#endif
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
The ``<Python.h>`` header file no longer includes ``<stdlib.h>``. C
extensions using ``<stdlib.h>`` must now include it explicitly. Patch by
Victor Stinner.