summaryrefslogtreecommitdiffstats
path: root/Modules/mathmodule.c
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2008-01-25 08:04:16 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2008-01-25 08:04:16 (GMT)
commit5f95a79b2bf395d114cac2bb74edb6c327ea0a34 (patch)
tree50c0a4120d74c93a4873f7c6f9e947a202247081 /Modules/mathmodule.c
parent769d0eefd75e5d921806caf75450c7c3a706bd1c (diff)
downloadcpython-5f95a79b2bf395d114cac2bb74edb6c327ea0a34.zip
cpython-5f95a79b2bf395d114cac2bb74edb6c327ea0a34.tar.gz
cpython-5f95a79b2bf395d114cac2bb74edb6c327ea0a34.tar.bz2
Add prototypes to get the mathmodule.c to compile on OSF1 5.1 (Tru64)
and eliminate a compiler warning in floatobject.c. There might be a better way to go about this, but it should be good enough for now.
Diffstat (limited to 'Modules/mathmodule.c')
-rw-r--r--Modules/mathmodule.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/Modules/mathmodule.c b/Modules/mathmodule.c
index 5e52e78..0440871 100644
--- a/Modules/mathmodule.c
+++ b/Modules/mathmodule.c
@@ -12,6 +12,11 @@ extern double modf (double, double *);
#endif /* __STDC__ */
#endif /* _MSC_VER */
+#ifdef _OSF_SOURCE
+/* OSF1 5.1 doesn't make this available with XOPEN_SOURCE_EXTENDED defined */
+extern double copysign(double, double);
+#endif
+
/* Call is_error when errno != 0, and where x is the result libm
* returned. is_error will usually set up an exception and return
* true (1), but may return false (0) without setting up an exception.