[git commit nptl] MAXFLOAT: obsolescent in SUSv4
Bernhard Reutner-Fischer
rep.dot.nop at gmail.com
Sun Nov 22 08:37:56 UTC 2009
commit: http://git.uclibc.org/uClibc/commit/?id=b58a430f41bdd6c7837e004e8a675d263cc1206c
branch: http://git.uclibc.org/uClibc/commit/?id=refs/heads/nptl
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop at gmail.com>
Signed-off-by: Austin Foxley <austinf at cetoncorp.com>
---
include/math.h | 2 ++
include/values.h | 2 ++
2 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/include/math.h b/include/math.h
index ecd0187..83ed899 100644
--- a/include/math.h
+++ b/include/math.h
@@ -377,8 +377,10 @@ extern int matherr (struct exception *__exc);
#else /* !SVID */
# ifdef __USE_XOPEN
+# ifdef __UCLIBC_SUSV4_LEGACY__
/* X/Open wants another strange constant. */
# define MAXFLOAT 3.40282347e+38F
+# endif
# endif
#endif /* SVID */
diff --git a/include/values.h b/include/values.h
index d8bd8b5..daf9511 100644
--- a/include/values.h
+++ b/include/values.h
@@ -53,7 +53,9 @@
#include <float.h>
#define MAXDOUBLE DBL_MAX
+#ifdef __UCLIBC_SUSV4_LEGACY__
#define MAXFLOAT FLT_MAX
+#endif
#define MINDOUBLE DBL_MIN
#define MINFLOAT FLT_MIN
#define DMINEXP DBL_MIN_EXP
--
1.6.3.3
More information about the uClibc-cvs
mailing list