summaryrefslogtreecommitdiffstats
path: root/Modules/mathmodule.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1992-01-14 18:37:27 (GMT)
committerGuido van Rossum <guido@python.org>1992-01-14 18:37:27 (GMT)
commit2d709b1608a7038fc41d6217389e6b6d4dbc7359 (patch)
treedf72a271a934ae1e355cca7c434413a2d12b2d02 /Modules/mathmodule.c
parent4c260ff2a53b094cbaae3033ca50fb24a1717d0a (diff)
downloadcpython-2d709b1608a7038fc41d6217389e6b6d4dbc7359.zip
cpython-2d709b1608a7038fc41d6217389e6b6d4dbc7359.tar.gz
cpython-2d709b1608a7038fc41d6217389e6b6d4dbc7359.tar.bz2
Get rid of AMOEBA deps; add declaration of fmod() if __STDC__ is not defined.
Diffstat (limited to 'Modules/mathmodule.c')
-rw-r--r--Modules/mathmodule.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/Modules/mathmodule.c b/Modules/mathmodule.c
index fdc576d..03b0705 100644
--- a/Modules/mathmodule.c
+++ b/Modules/mathmodule.c
@@ -35,6 +35,10 @@ extern int errno;
#include <math.h>
+#ifndef __STDC__
+extern double fmod();
+#endif
+
#ifdef HUGE_VAL
#define CHECK(x) if (errno != 0) ; \
else if (-HUGE_VAL <= (x) && (x) <= HUGE_VAL) ; \
@@ -109,10 +113,7 @@ FUNC1(math_cosh, cosh)
FUNC1(math_exp, exp)
FUNC1(math_fabs, fabs)
FUNC1(math_floor, floor)
-#ifndef AMOEBA
-/* XXX This one is not in the Amoeba library yet, so what the heck... */
FUNC2(math_fmod, fmod)
-#endif
FUNC1(math_log, log)
FUNC1(math_log10, log10)
#ifdef MPW_3_1 /* This hack is needed for MPW 3.1 but not for 3.2 ... */
@@ -212,9 +213,7 @@ static struct methodlist math_methods[] = {
{"exp", math_exp},
{"fabs", math_fabs},
{"floor", math_floor},
-#ifndef AMOEBA
{"fmod", math_fmod},
-#endif
{"frexp", math_frexp},
{"ldexp", math_ldexp},
{"log", math_log},