aboutsummaryrefslogtreecommitdiff
path: root/Python/errors.c
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2021-10-13 19:25:53 +0200
committerGitHub <noreply@github.com>2021-10-13 19:25:53 +0200
commitaac29af6785712019d34f1a7f15b3c408a4f68ae (patch)
treeca44f1d999551118d5ab06e5994b6291d387e3e1 /Python/errors.c
parentdb2b6a20cd35781b2f5e798e880e57e6cf9b97aa (diff)
downloadcpython3-aac29af6785712019d34f1a7f15b3c408a4f68ae.tar.gz
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/errors.c')
-rw-r--r--Python/errors.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/Python/errors.c b/Python/errors.c
index f072c21496..519f2d459e 100644
--- a/Python/errors.c
+++ b/Python/errors.c
@@ -15,12 +15,13 @@ extern char *strerror(int);
#endif
#endif
+#include <ctype.h>
#ifdef MS_WINDOWS
-#include <windows.h>
-#include <winbase.h>
+# include <windows.h>
+# include <winbase.h>
+# include <stdlib.h> // _sys_nerr
#endif
-#include <ctype.h>
#ifdef __cplusplus
extern "C" {