summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1995-01-12 11:28:16 (GMT)
committerGuido van Rossum <guido@python.org>1995-01-12 11:28:16 (GMT)
commitb9418686baecd5cb02e4ea71490ba4f23e4c5bb8 (patch)
treed46124ad031895637718ea6f86adb024a42caa29
parent20566845c6fffdb58875cdaf1118bc95b590d5c0 (diff)
downloadcpython-b9418686baecd5cb02e4ea71490ba4f23e4c5bb8.zip
cpython-b9418686baecd5cb02e4ea71490ba4f23e4c5bb8.tar.gz
cpython-b9418686baecd5cb02e4ea71490ba4f23e4c5bb8.tar.bz2
rearrange declarations somewhat
-rw-r--r--Modules/mathmodule.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/Modules/mathmodule.c b/Modules/mathmodule.c
index 5b486fd..ae7dc7f 100644
--- a/Modules/mathmodule.c
+++ b/Modules/mathmodule.c
@@ -28,22 +28,25 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#include <errno.h>
-#include "modsupport.h"
-
#define getdoublearg(v, a) getargs(v, "d", a)
#define get2doublearg(v, a, b) getargs(v, "(dd)", a, b)
#include <math.h>
-#ifdef i860
-/* Cray APP has bogus definition of HUGE_VAL in <math.h> */
-#undef HUGE_VAL
-#endif
-
-#ifndef macintosh
#ifndef __STDC__
extern double fmod PROTO((double, double));
+extern double frexp PROTO((double, int *));
+extern double ldexp PROTO((double, int));
+extern double modf PROTO((double, double *));
#endif
+
+#ifdef HAVE_HYPOT
+extern double hypot PROTO((double, double));
+#endif
+
+#ifdef i860
+/* Cray APP has bogus definition of HUGE_VAL in <math.h> */
+#undef HUGE_VAL
#endif
#ifdef HUGE_VAL
@@ -139,9 +142,6 @@ FUNC1(math_tanh, tanh)
#ifndef macintosh
-double frexp PROTO((double, int *));
-double ldexp PROTO((double, int));
-double modf PROTO((double, double *));
#endif