about summary refs log tree commit diff
path: root/src/math/lrintl.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/math/lrintl.c')
-rw-r--r--src/math/lrintl.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/math/lrintl.c b/src/math/lrintl.c
index 0e579bc5..5eb1ba7e 100644
--- a/src/math/lrintl.c
+++ b/src/math/lrintl.c
@@ -8,7 +8,7 @@ long lrintl(long double x)
 {
 	return lrint(x);
 }
-#else
+#elif defined(FE_INEXACT)
 /*
 see comments in lrint.c
 
@@ -27,4 +27,9 @@ long lrintl(long double x)
 	/* conversion */
 	return x;
 }
+#else
+long lrintl(long double x)
+{
+	return rintl(x);
+}
 #endif