[newlib-cygwin] math.h: fix guards on basic M_ constants
Yaakov Selkowitz
yselkowitz@sourceware.org
Fri Jul 15 21:45:00 GMT 2016
https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=52d940e2633d79eb48982cb76f972f869d770f1a
commit 52d940e2633d79eb48982cb76f972f869d770f1a
Author: Yaakov Selkowitz <yselkowi@redhat.com>
Date: Fri Jul 15 09:06:53 2016 -0500
math.h: fix guards on basic M_ constants
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>
Diff:
---
newlib/libc/include/math.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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
More information about the Newlib-cvs
mailing list