From e76ee993ff30a639d24c7db6a080c14d1b1a10f2 Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Thu, 2 Feb 2017 14:02:49 -0800 Subject: [PATCH] isnan and isinf aren't functions. isnan was a function in POSIX in 1997, but changed to a macro only in 2004 to align with the C standard. isinf wasn't in POSIX until 2004, where it appeared as a macro only (but other C libraries already had it as a function). Now the C++ standard has added ::isnan and ::isinf functions with different signatures from the historical ones, so we need to move our historical cruft out of the way. We'll keep the implementations for backwards compatibility. Bug: http://b/34724220 Test: ran tests Change-Id: Id665f0344af6fe6ed245106e60231f4ef2027f41 --- libc/include/math.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/libc/include/math.h b/libc/include/math.h index d9896fcc4..8bf6fb56e 100644 --- a/libc/include/math.h +++ b/libc/include/math.h @@ -144,8 +144,6 @@ double expm1(double); double fma(double, double, double); double hypot(double, double); int ilogb(double) __attribute_const__; -int(isinf)(double) __attribute_const__ __INTRODUCED_IN(21); -int (isnan)(double) __attribute_const__; double lgamma(double); long long llrint(double); long long llround(double);