summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2009-11-18 16:00:43 +0100
committerAustin Foxley <austinf@cetoncorp.com>2009-11-22 11:14:49 -0800
commitb58a430f41bdd6c7837e004e8a675d263cc1206c (patch)
tree11aa1b9cd10e9367852627ef14f049611bc1074a
parent97a3a2a9fa52ba32f5c038613c01d3df34ee4cf0 (diff)
downloaduClibc-alpine-b58a430f41bdd6c7837e004e8a675d263cc1206c.tar.bz2
uClibc-alpine-b58a430f41bdd6c7837e004e8a675d263cc1206c.tar.xz
MAXFLOAT: obsolescent in SUSv4
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
-rw-r--r--include/math.h2
-rw-r--r--include/values.h2
2 files changed, 4 insertions, 0 deletions
diff --git a/include/math.h b/include/math.h
index ecd01877c..83ed8993c 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 d8bd8b50a..daf95118a 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