summaryrefslogtreecommitdiffstats
path: root/Python/dtoa.c
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2021-10-13 17:25:53 (GMT)
committerGitHub <noreply@github.com>2021-10-13 17:25:53 (GMT)
commitaac29af6785712019d34f1a7f15b3c408a4f68ae (patch)
treeca44f1d999551118d5ab06e5994b6291d387e3e1 /Python/dtoa.c
parentdb2b6a20cd35781b2f5e798e880e57e6cf9b97aa (diff)
downloadcpython-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/dtoa.c')
-rw-r--r--Python/dtoa.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Python/dtoa.c b/Python/dtoa.c
index e629b29..6c44f68 100644
--- a/Python/dtoa.c
+++ b/Python/dtoa.c
@@ -119,6 +119,7 @@
#include "Python.h"
#include "pycore_dtoa.h"
+#include <stdlib.h> // exit()
/* if PY_NO_SHORT_FLOAT_REPR is defined, then don't even try to compile
the following code */