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