diff options
-rw-r--r-- | include/math.h | 2 | ||||
-rw-r--r-- | include/values.h | 2 |
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 |