isnanf-nolibm: Make it work on IRIX 6.5 with cc.
authorBruno Haible <bruno@clisp.org>
Sat, 10 Mar 2012 15:07:42 +0000 (16:07 +0100)
committerBruno Haible <bruno@clisp.org>
Sat, 10 Mar 2012 15:08:06 +0000 (16:08 +0100)
* lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.

ChangeLog
lib/isnanf-nolibm.h

index ef956bd..37268ee 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2012-03-10  Bruno Haible  <bruno@clisp.org>
 
+       isnanf-nolibm: Make it work on IRIX 6.5 with cc.
+       * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
+
+2012-03-10  Bruno Haible  <bruno@clisp.org>
+
        logf-ieee: Work around test failure on NetBSD 5.1.
        * m4/logf-ieee.m4: New file.
        * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
index 5270387..17b3dea 100644 (file)
 # elif defined isnan
 #  undef isnanf
 #  define isnanf(x) isnan ((float)(x))
+# else
+   /* Get declaration of isnanf(), if not declared in <math.h>.  */
+#  if defined __sgi
+#   include <ieeefp.h>
+#  endif
 # endif
 #else
 /* Test whether X is a NaN.  */