summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/math/isinf.c
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/cygwin/math/isinf.c')
-rw-r--r--winsup/cygwin/math/isinf.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/winsup/cygwin/math/isinf.c b/winsup/cygwin/math/isinf.c
index fd9e2992a..6482c9921 100644
--- a/winsup/cygwin/math/isinf.c
+++ b/winsup/cygwin/math/isinf.c
@@ -16,3 +16,8 @@ isinfl (long double x)
return __builtin_isinf_sign (x);
}
+/* Infinity as a constant value. Should never actually be used any longer,
+ but has been exported by Cygwin for ages so we keep it here for (probably
+ unnecessary) backward compat. */
+#include <float.h>
+const double __infinity[1] = { DBL_MAX+DBL_MAX };