diff options
author | Victor Stinner <vstinner@python.org> | 2021-10-13 17:25:53 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-13 17:25:53 (GMT) |
commit | aac29af6785712019d34f1a7f15b3c408a4f68ae (patch) | |
tree | ca44f1d999551118d5ab06e5994b6291d387e3e1 /Python/initconfig.c | |
parent | db2b6a20cd35781b2f5e798e880e57e6cf9b97aa (diff) | |
download | cpython-aac29af6785712019d34f1a7f15b3c408a4f68ae.zip cpython-aac29af6785712019d34f1a7f15b3c408a4f68ae.tar.gz cpython-aac29af6785712019d34f1a7f15b3c408a4f68ae.tar.bz2 |
bpo-45434: pyport.h no longer includes <stdlib.h> (GH-28914)
Include <stdlib.h> explicitly in C files.
Python.h includes <wchar.h>.
Diffstat (limited to 'Python/initconfig.c')
-rw-r--r-- | Python/initconfig.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Python/initconfig.c b/Python/initconfig.c index ba6d19d..b0d54b0 100644 --- a/Python/initconfig.c +++ b/Python/initconfig.c @@ -10,7 +10,9 @@ #include "pycore_pystate.h" // _PyThreadState_GET() #include "osdefs.h" // DELIM + #include <locale.h> // setlocale() +#include <stdlib.h> // getenv() #if defined(MS_WINDOWS) || defined(__CYGWIN__) # ifdef HAVE_IO_H # include <io.h> |