diff options
Diffstat (limited to 'tests/tcmp_ld.c')
-rw-r--r-- | tests/tcmp_ld.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/tcmp_ld.c b/tests/tcmp_ld.c index 22ae139c3..a33059669 100644 --- a/tests/tcmp_ld.c +++ b/tests/tcmp_ld.c @@ -23,6 +23,7 @@ https://www.gnu.org/licenses/ or write to the Free Software Foundation, Inc., #include <float.h> #include "mpfr-test.h" +#include "ieee_floats.h" int main (void) @@ -88,7 +89,7 @@ main (void) int c; mpfr_clear_flags (); - c = mpfr_cmp_ld (x, DBL_NAN); + c = mpfr_cmp_ld (x, MPFR_DBL_NAN); if (c != 0 || __gmpfr_flags != MPFR_FLAGS_ERANGE) { printf ("ERROR for NAN (1)\n"); |