diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2017-04-18 13:17:26 +0300 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2017-04-18 13:17:26 +0300 |
commit | bdb017b30ca0a8f57e50a3d5cb2334cbbeb2a43e (patch) | |
tree | 0204969b56b4b799a29c48f7bb17b59f6ecfbff1 /winsup | |
parent | 4c90db7bc89e7fa1077025fefdd58269dc71a6ac (diff) |
newlib: remove __infinity{f,ld} constants
previous commit 4c90db7bc89e7fa1077025fefdd58269dc71a6ac introduced
a compile time error because libm/common/s_infconst.c used the remove
__fmath, __dmath, and __ldmath union types.
Since this is very old, and unused for a very long time, just drop the
file and thus the __infinity constants entirely.
Exception: Cygwin exports __infinity from the beginning. There's a very,
VERY low probability that any existing executable or lib still uses this
constant, but we just keep it in for backward compat, nevertheless.
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
Diffstat (limited to 'winsup')
-rw-r--r-- | winsup/cygwin/math/isinf.c | 5 |
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 }; |