about summary refs log tree commit diff
path: root/stdlib/fpioconst.h
diff options
context:
space:
mode:
Diffstat (limited to 'stdlib/fpioconst.h')
-rw-r--r--stdlib/fpioconst.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/stdlib/fpioconst.h b/stdlib/fpioconst.h
index c7f87ba5a8..84685bc2ef 100644
--- a/stdlib/fpioconst.h
+++ b/stdlib/fpioconst.h
@@ -34,7 +34,7 @@
    XXX These should be defined in <float.h>.  For the time being, we have the
    IEEE754 values here.  */
 
-#ifndef __NO_LONG_DOUBLE_MATH
+#if !defined __NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024
 # define LDBL_MAX_10_EXP_LOG	12 /* = floor(log_2(LDBL_MAX_10_EXP)) */
 #else
 # define LDBL_MAX_10_EXP_LOG	8 /* = floor(log_2(LDBL_MAX_10_EXP)) */