SF bug 119622: compile errors due to redundant atof decls. I don't understand
the bug report (for details, look at it), but agree there's no need for Python
to declare atof itself: we #include stdlib.h, and ANSI C sez atof is declared
there already.
diff --git a/Python/compile.c b/Python/compile.c
index e14fc01..77ae001 100644
--- a/Python/compile.c
+++ b/Python/compile.c
@@ -767,7 +767,6 @@
static PyObject *
parsenumber(struct compiling *co, char *s)
{
- extern double atof(const char *);
char *end;
long x;
double dx;
diff --git a/Python/marshal.c b/Python/marshal.c
index f8953ce..a9b3ed1 100644
--- a/Python/marshal.c
+++ b/Python/marshal.c
@@ -403,7 +403,6 @@
case TYPE_FLOAT:
{
- extern double atof(const char *);
char buf[256];
double dx;
n = r_byte(p);
@@ -422,7 +421,6 @@
#ifndef WITHOUT_COMPLEX
case TYPE_COMPLEX:
{
- extern double atof(const char *);
char buf[256];
Py_complex c;
n = r_byte(p);