diff mbox

math.h: fix guards on basic M_ constants

Message ID 20160715141845.13060-1-yselkowi@redhat.com
State New
Headers show

Commit Message

Yaakov Selkowitz July 15, 2016, 2:18 p.m. UTC
MAXFLOAT, M_PI, and friends date back to at least XPG4v2, so this guard
was incorrect even prior to the feature test macros overhaul.

Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>

---
 newlib/libc/include/math.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

-- 
2.8.3
diff mbox

Patch

diff --git a/newlib/libc/include/math.h b/newlib/libc/include/math.h
index 3725ac0..ebbdac6 100644
--- a/newlib/libc/include/math.h
+++ b/newlib/libc/include/math.h
@@ -628,7 +628,7 @@  extern int matherr _PARAMS((struct exception *e));
 
 /* Useful constants.  */
 
-#if __BSD_VISIBLE || __XSI_VISIBLE >= 500
+#if __BSD_VISIBLE || __XSI_VISIBLE
 
 #define MAXFLOAT	3.40282347e+38F