Browse Source

MAXFLOAT: obsolescent in SUSv4

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Bernhard Reutner-Fischer 14 years ago
parent
commit
9caa67af98
2 changed files with 4 additions and 0 deletions
  1. 2 0
      include/math.h
  2. 2 0
      include/values.h

+ 2 - 0
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 */

+ 2 - 0
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