summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2009-11-18 16:00:43 +0100
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2009-11-19 16:07:15 +0100
commit9caa67af987a28558bfb4045d31b8b8719b3f8ec (patch)
treed9b4488d68e339e791d4abe0342d7398850b1a37
parentfa1bb23a599da9283f190ab525b971c55475f5f9 (diff)
MAXFLOAT: obsolescent in SUSv4
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.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