diff options
Diffstat (limited to 'gl/isnanf-nolibm.h')
-rw-r--r-- | gl/isnanf-nolibm.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gl/isnanf-nolibm.h b/gl/isnanf-nolibm.h index 52703870a2..9d550e0977 100644 --- a/gl/isnanf-nolibm.h +++ b/gl/isnanf-nolibm.h @@ -24,6 +24,13 @@ # 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 + /* We can't include <ieeefp.h>, because it conflicts with our definition of + isnand. Therefore declare isnanf separately. */ +extern int isnanf (float x); +# endif # endif #else /* Test whether X is a NaN. */ |