summaryrefslogtreecommitdiffstats
path: root/Modules/_math.c
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2014-03-15 16:50:00 (GMT)
committerBenjamin Peterson <benjamin@python.org>2014-03-15 16:50:00 (GMT)
commitc77e7a4f233453a4e39fc7f61c72e6ef3877dcd1 (patch)
tree9804e453033fbe24f16d6e9ee23b91f6f77f428c /Modules/_math.c
parentce68c19ee7fc27eea1b1a0abbfab316d93876ed4 (diff)
downloadcpython-c77e7a4f233453a4e39fc7f61c72e6ef3877dcd1.zip
cpython-c77e7a4f233453a4e39fc7f61c72e6ef3877dcd1.tar.gz
cpython-c77e7a4f233453a4e39fc7f61c72e6ef3877dcd1.tar.bz2
only define zero constant when it is used
Diffstat (limited to 'Modules/_math.c')
-rw-r--r--Modules/_math.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/_math.c b/Modules/_math.c
index fe75a36..a14ff06 100644
--- a/Modules/_math.c
+++ b/Modules/_math.c
@@ -22,7 +22,9 @@
static const double ln2 = 6.93147180559945286227E-01;
static const double two_pow_m28 = 3.7252902984619141E-09; /* 2**-28 */
static const double two_pow_p28 = 268435456.0; /* 2**28 */
+#ifndef Py_NAN
static const double zero = 0.0;
+#endif
/* acosh(x)
* Method :