Use isnanf() instead of isnan(). Avoids a link error on HP-UX 11.
[gnulib.git] / tests / test-floorf1.c
index c411520..afd006b 100644 (file)
@@ -23,6 +23,8 @@
 #include <stdio.h>
 #include <stdlib.h>
 
+#include "isnanf.h"
+
 #define ASSERT(expr) \
   do                                                                        \
     {                                                                       \
@@ -77,7 +79,7 @@ main ()
   ASSERT (floorf (1.0f / 0.0f) == 1.0f / 0.0f);
   ASSERT (floorf (-1.0f / 0.0f) == -1.0f / 0.0f);
   /* NaNs.  */
-  ASSERT (isnan (floorf (NaN ())));
+  ASSERT (isnanf (floorf (NaN ())));
 
   return 0;
 }