about summary refs log tree commit diff
path: root/src/math/lrint.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/math/lrint.c')
-rw-r--r--src/math/lrint.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/math/lrint.c b/src/math/lrint.c
index feba28d0..67091835 100644
--- a/src/math/lrint.c
+++ b/src/math/lrint.c
@@ -25,7 +25,7 @@ otherwise LONG_MAX and LONG_MIN can be represented exactly
 as a double.
 */
 
-#if LONG_MAX < 1U<<53
+#if LONG_MAX < 1U<<53 && defined(FE_INEXACT)
 long lrint(double x)
 {
 	int e;