diff options
Diffstat (limited to 'newlib/libm/common/sf_isinf.c')
-rw-r--r-- | newlib/libm/common/sf_isinf.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/newlib/libm/common/sf_isinf.c b/newlib/libm/common/sf_isinf.c index 74ba4edf7..6595a681c 100644 --- a/newlib/libm/common/sf_isinf.c +++ b/newlib/libm/common/sf_isinf.c @@ -1,11 +1,17 @@ /* * isinff(x) returns 1 if x is +-infinity, else 0; * - * isinff is an extension declared in <ieeefp.h> and - * <math.h>. + * isinf is a <math.h> macro in the C99 standard. It was previously + * implemented as isinf and isinff functions by newlib and are still declared + * as such in <ieeefp.h>. Newlib supplies it here as a function if the user + * chooses to use <ieeefp.h> or needs to link older code compiled with the + * previous <math.h> declaration. */ #include "fdlibm.h" +#include <ieeefp.h> + +#undef isinff int _DEFUN (isinff, (x), |