diff options
Diffstat (limited to 'math/bug-nextafter.c')
-rw-r--r-- | math/bug-nextafter.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/math/bug-nextafter.c b/math/bug-nextafter.c index 1d21841ea6..558b158391 100644 --- a/math/bug-nextafter.c +++ b/math/bug-nextafter.c @@ -4,6 +4,12 @@ #include <stdlib.h> #include <stdio.h> +#if !defined(FE_OVERFLOW) && !defined(FE_UNDERFLOW) +/* If there's no support for the exceptions this test is checking, + then just return success and allow the test to be compiled. */ +# define fetestexcept(e) 1 +#endif + float zero = 0.0; float inf = INFINITY; |