summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew MacIntyre <andymac@bullseye.apana.org.au>2008-09-22 14:11:41 (GMT)
committerAndrew MacIntyre <andymac@bullseye.apana.org.au>2008-09-22 14:11:41 (GMT)
commitf8db82242b2620bcf56d7329e38107093dd053e0 (patch)
tree4d66b8a104c4bf0f0332bd06b0b7d3fa5b15e5f2
parent8c47cabbe9da1972597007bc8c89efd3a615addb (diff)
downloadcpython-f8db82242b2620bcf56d7329e38107093dd053e0.zip
cpython-f8db82242b2620bcf56d7329e38107093dd053e0.tar.gz
cpython-f8db82242b2620bcf56d7329e38107093dd053e0.tar.bz2
any platform without HAVE_LOG1P should have DBL_EPSILON in <float.h>
Part of source_os2emx.patch in issue 3868 Reviewed by Amaury Forgeot d'Arc
-rw-r--r--Python/pymath.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Python/pymath.c b/Python/pymath.c
index 7c00106..5cf61ab 100644
--- a/Python/pymath.c
+++ b/Python/pymath.c
@@ -35,6 +35,8 @@ copysign(double x, double y)
#endif /* HAVE_COPYSIGN */
#ifndef HAVE_LOG1P
+#include <float.h>
+
double
log1p(double x)
{