summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAron Ahmadia <aron@ahmadia.net>2012-05-28 20:44:55 +0300
committerAron Ahmadia <aron@ahmadia.net>2012-05-28 20:44:55 +0300
commitf2f306d55ead9a052dea0b1bc7e4a24a2e8916c8 (patch)
treee5e91976675d3bcb2c0e3033b8185e72da093cc0
parente3862feeba9d7909ae500d0c08d2234a7c221c47 (diff)
downloadnumpy-f2f306d55ead9a052dea0b1bc7e4a24a2e8916c8.tar.gz
LDBL_TRUE_MIN falls back to __LDBL_DENORM_MIN__ if not defined
-rw-r--r--numpy/core/src/npymath/ieee754.c.src7
1 files changed, 7 insertions, 0 deletions
diff --git a/numpy/core/src/npymath/ieee754.c.src b/numpy/core/src/npymath/ieee754.c.src
index eff464ab9..90bbf5fb6 100644
--- a/numpy/core/src/npymath/ieee754.c.src
+++ b/numpy/core/src/npymath/ieee754.c.src
@@ -18,6 +18,13 @@ double npy_copysign(double x, double y)
}
#endif
+/*
+ The below code is provided for compilers which do not yet provide C11 compatibility (gcc 4.5 and older)
+ */
+#ifndef LDBL_TRUE_MIN
+#define LDBL_TRUE_MIN __LDBL_DENORM_MIN__
+#endif
+
#if !defined(HAVE_DECL_SIGNBIT)
#include "_signbit.c"