Mercurial > hg > octave-lyh > gnulib-hg
changeset 16646:e0066a03e708
isnanf-nolibm: Make it work on IRIX 6.5 with cc.
* lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Sat, 10 Mar 2012 16:07:42 +0100 |
parents | d7a6433b4967 |
children | c7d27bd249a7 |
files | ChangeLog lib/isnanf-nolibm.h |
diffstat | 2 files changed, 10 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +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.
--- a/lib/isnanf-nolibm.h +++ b/lib/isnanf-nolibm.h @@ -24,6 +24,11 @@ # 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. */