make lrint and llrint functions work without fenv support
[musl] / src / math / llrintl.c
index f1cc47e..32bb8b0 100644 (file)
@@ -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