mirror of
https://github.com/python/cpython.git
synced 2026-01-27 05:05:50 +00:00
bpo-45434: Python.h no longer includes <stdlib.h> (GH-28888)
This commit is contained in:
parent
7103356455
commit
03ea862b8a
@ -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
|
||||
----------
|
||||
|
||||
|
||||
@ -25,7 +25,6 @@
|
||||
#ifdef HAVE_ERRNO_H
|
||||
# include <errno.h> // errno
|
||||
#endif
|
||||
#include <stdlib.h>
|
||||
#ifndef MS_WINDOWS
|
||||
# include <unistd.h>
|
||||
#endif
|
||||
|
||||
@ -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.
|
||||
Loading…
x
Reference in New Issue
Block a user