Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7103356 commit 03ea862Copy full SHA for 03ea862
3 files changed
Doc/whatsnew/3.11.rst
@@ -552,6 +552,10 @@ Porting to Python 3.11
552
553
(Contributed by Victor Stinner in :issue:`39573`.)
554
555
+* The ``<Python.h>`` header file no longer includes ``<stdlib.h>``. C
556
+ extensions using ``<stdlib.h>`` must now include it explicitly.
557
+ (Contributed by Victor Stinner in :issue:`45434`.)
558
+
559
Deprecated
560
----------
561
Include/Python.h
@@ -25,7 +25,6 @@
25
#ifdef HAVE_ERRNO_H
26
# include <errno.h> // errno
27
#endif
28
-#include <stdlib.h>
29
#ifndef MS_WINDOWS
30
# include <unistd.h>
31
Misc/NEWS.d/next/C API/2021-10-11-23-03-49.bpo-45434.tsS8I_.rst
@@ -0,0 +1,3 @@
1
+The ``<Python.h>`` header file no longer includes ``<stdlib.h>``. C
2
+extensions using ``<stdlib.h>`` must now include it explicitly. Patch by
3
+Victor Stinner.
0 commit comments