math: use '#pragma STDC FENV_ACCESS ON' when fenv is accessed
[musl] / src / math / lrintl.c
index 5eb1ba7..b2a8106 100644 (file)
@@ -18,6 +18,7 @@ raises inexact (with tonearest or upward rounding mode)
 */
 long lrintl(long double x)
 {
+       #pragma STDC FENV_ACCESS ON
        int e;
 
        e = fetestexcept(FE_INEXACT);