From cffc98917516f0cc67b1aaada5f93647efe93772 Mon Sep 17 00:00:00 2001 From: das Date: Sat, 12 Jun 2010 17:32:05 +0000 Subject: Introduce __isnanf() as an alias for isnanf(), and make the isnan() macro expand to __isnanf() instead of isnanf() for float arguments. This change is needed because isnanf() isn't declared in strict POSIX or C99 mode. Compatibility note: Apps using isnan(float) that are compiled after this change won't link against an older libm. Reported by: Florian Forster --- lib/msun/src/math.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/msun/src/math.h') diff --git a/lib/msun/src/math.h b/lib/msun/src/math.h index 601d0ce..9109727 100644 --- a/lib/msun/src/math.h +++ b/lib/msun/src/math.h @@ -97,7 +97,7 @@ extern const union __nan_un { : (sizeof (x) == sizeof (double)) ? isinf(x) \ : __isinfl(x)) #define isnan(x) \ - ((sizeof (x) == sizeof (float)) ? isnanf(x) \ + ((sizeof (x) == sizeof (float)) ? __isnanf(x) \ : (sizeof (x) == sizeof (double)) ? isnan(x) \ : __isnanl(x)) #define isnormal(x) \ @@ -179,6 +179,7 @@ int __isfinite(double) __pure2; int __isfinitel(long double) __pure2; int __isinff(float) __pure2; int __isinfl(long double) __pure2; +int __isnanf(float) __pure2; int __isnanl(long double) __pure2; int __isnormalf(float) __pure2; int __isnormal(double) __pure2; -- cgit v1.1